6 Replies Latest reply on May 9, 2018 9:23 AM by betsy curbelo

    LOD and Python Script

    betsy curbelo

      Hi, i have a scrip_int with python that returns the index depending of a sort, now I need to use this script only for an specific dimension, but i get an error that LOD cant be used with table calculations

       

      this is my python_script:

      SCRIPT_INT("
      lst=[]
      lst2 = zip(_arg1,_arg2)
      lst2.sort()
      for idx, val in enumerate(lst2):
        lst.append(idx)
      return lst
      ",
      ATTR([Site]), [Δ DOW Joins]
      )

       

      I was trying to do this:

      case {fixed Site, date : python_script} = 0 when true then Site end

       

      Can Be done? It makes sense?