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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
smather
Helper III
Helper III

Conditional Format Rules Doesn't Work When Filtered

Hi there

 

I have some conditional formatting on the totals (I'd like them to be on both values and totals, took values off because it didn't work when filtered only to find out it doesn't work when filtered for totals either). 

 

It's a 3 pronged rule and each is different for every column. 

 

First rule - if it's >= 0 and < 25 then red

Second rule - if it's >=25 but < 55 then yellow

Third rule - if it's >=55 and < 100 then green

 

Each col has a variation of that rule. And when nothing is filtered, it colours the total correctly. If I filter the months, then they're all green when they shouldn't be. Any ideas?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @smather ,

 

Please try to create a measure for conditional formatting:

Color Measure = SWITCH(TRUE(),
[10Secs %]>=0 && [10Secs %]<0.25 ,"Red",[10Secs %]>=0.25 && [10Secs %]<=0.55, "Yellow", [10Secs %]>=0.55 && [10Secs %]<1,"Green")

Eyelyn9_0-1643333070854.png

conditional formatting.gif

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @smather ,

 

Please try to create a measure for conditional formatting:

Color Measure = SWITCH(TRUE(),
[10Secs %]>=0 && [10Secs %]<0.25 ,"Red",[10Secs %]>=0.25 && [10Secs %]<=0.55, "Yellow", [10Secs %]>=0.55 && [10Secs %]<1,"Green")

Eyelyn9_0-1643333070854.png

conditional formatting.gif

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@mh2587 that's absolutely perfect, thank you!

mh2587
Super User
Super User

can you share the screenshots 


✔ Answered? Mark as solution

Muhammad Hasnain | Super User • Fabric • Power BI • Data Engineering

Let's connect on LinkedIn

@mh2587  sure!

 

smather_0-1643117866728.png

 

smather_1-1643117943377.png

 

Apologies, I should've said "it didn't do what it was meant to". The top picture is perfect, until I filter it by month:

 

smather_2-1643118054383.png

 

mh2587
Super User
Super User

If the values in percentage then put 0.25 , 0.55 and 1 for hundred 


✔ Answered? Mark as solution

Muhammad Hasnain | Super User • Fabric • Power BI • Data Engineering

Let's connect on LinkedIn

Hi @mh2587  - just tried this, and it doesn't format anything 😞

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors
Top Kudoed Authors