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
Anonymous
Not applicable

Conditional Formating on Aggregated Time Value

Hello!

I'm fairly new to DAX and Power BI and need your advice on the issue that I'm facing.

 

I'm trying to apply conditional formatting to my aggregated talktime.

My measure: Talktime_Sum = Sum(AllCombine[Talktime])

sonorousmist_2-1695110928504.png

 

 

I'm trying to put them to three colours:

- < 1:30:00 it will be Red

- > 1:30:00 and < 2:00:00 it will be Amber

- > 2:00:00 it will be green

 

I have tried using this method whereby I create a colour measure first and then use conditional formatting with field value option on it but the first step doesn't seem to be working for me.

 
Colour = SWITCH( TRUE (),
SUM(AllCombine[Talktime]) < TIME(01,30,00), "Red",
SUM(AllCombine[Talktime]) > TIME(01,30,00) && SUM(AllCombine[Talktime]) < TIME(02,00,00), "Amber",
"Green"
)

 

 

 

My result:

sonorousmist_3-1695111087825.png

Thanks in advance!

1 REPLY 1
RSC
Helper I
Helper I

Hi @Anonymous,
Yes, the first solution wouldn't work, because there is no such field in conditional formatting which describe time filed, so I don't think it's possible right now.
Thanks!

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.

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.