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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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