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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.