Forum Discussion

AI14's avatar
AI14
Helper III
3 years ago
Solved

if statement time

Hi

 

my measure doesnt seem to work. i want to show a 1 if the task duration is less than the clean sla.

 

 

Task duarion is a measure that does outbound_st - sta & Clean SLA is a column i manually added times for each reg.

 

test01 =
IF[TaskDuration] < SUMX(clean,clean[Clean SLA]),1)
 

 

  • Hi AI14 

    try

    test01 =
    IF( TIMEVALUE ( [TaskDuration] ) < SUMX(clean,clean[Clean SLA]),1)

4 Replies

  • tamerj1's avatar
    tamerj1
    Community Champion

    Hi AI14 

    try

    test01 =
    IF( TIMEVALUE ( [TaskDuration] ) < SUMX(clean,clean[Clean SLA]),1)
    • AI14's avatar
      AI14
      Helper III

      same result all showing 1 even uf its less or more

       

       

      • tamerj1's avatar
        tamerj1
        Community Champion

        AI14 

        which column are you using to slice by in this table visual and from which table?