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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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