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
HelenaX
Helper I
Helper I

Compare Finish Time with Target Time

I would like to compare a workflow (wf) finish time with the target time and highlight the finish time when it passes the target time. The Finish Time is in hh.mm format, for instance 05:00pm. I would like to compare it with the target time, i.e. 07:00pm. However, when I tried to do the Conditional Formating for WF Finish Time, I was only given the option of Count of WF Finish Time, instead of the actual value of the Finish Time. Is there anyway to do conditional formatting for time?

HelenaX_0-1620163213521.png

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@HelenaX Might have to convert the time to a number in a new column/measure and base the conditional formatting on that. Some links are below for that but in your case, you might be able to create a copy of the column and just change the data type.


https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486

https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
HelenaX
Helper I
Helper I

It is very strange. I had to post my replies 3 times and first 2 replies simply disappeared after I clicked "Post". This is not the first time I experienced this in this community. Also, I couldn't do a Thumb Up. Was there a restriction on the number of thumbs a solution can have?

HelenaX_0-1620252810825.png

 

HelenaX
Helper I
Helper I

@Greg_Deckler That works!! I was able to create a measure to convert the time to a number:

          WF Finish Time in Decimal = selectedvalue('Main WF Status'[WF Finish Time])*24
and then do the conditional formatting! Exactly what I need! Thank you!
Greg_Deckler
Community Champion
Community Champion

@HelenaX Might have to convert the time to a number in a new column/measure and base the conditional formatting on that. Some links are below for that but in your case, you might be able to create a copy of the column and just change the data type.


https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486

https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors