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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
jwi1
Post Patron
Post Patron

Conditional formatting

Hi all,

Hope someone can help me with the following.

Below is a simple table.

What I want is the following;

If the TIME_TO_COMPLETE is more than 00:20 and the MODALITY_OUT is TRUCK, the time to complete value must shown up in YELLOW.

Is there a formula to do so?

Thanks for your help!

John

 

Knipsel.JPG

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jwi1 , hope time complete is a measure the color measure

 

if( [TIME_TO_COMPLET] >= time(0,0,20) && [MODALITY_OUT] = "TRUCK" , "Yellow", "White")

 

Use in conditional formatting using field value option

 

[TIME_TO_COMPLET] >= 20 // if time in second and formatted as time

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@jwi1 , hope time complete is a measure the color measure

 

if( [TIME_TO_COMPLET] >= time(0,0,20) && [MODALITY_OUT] = "TRUCK" , "Yellow", "White")

 

Use in conditional formatting using field value option

 

[TIME_TO_COMPLET] >= 20 // if time in second and formatted as time

Thanks @amitchandak , fixed!

John

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.