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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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