Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AI14
Helper III
Helper III

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)
 

AI14_0-1676040339806.png

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @AI14 

try

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

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @AI14 

try

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

same result all showing 1 even uf its less or more

 

AI14_0-1676042940839.png

 

@AI14 

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

worked, i added timevalue to both sections

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors