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
NickM11
New Member

Switch True

I wanted to create a conditional format for changing the colour of a guage, and have had success with 2 variations, but not with the third.

I can set the colour if value is less than 70% "Red", or greater than 90% "Green", however I don't know how to set the 71%-89% to "Orange".

 

Please can you help.

 

This is what I tried

 

Switch = SWITCH(TRUE(), SUM('full volumes'[Total BB])<(0.7*SUM(Accounts[BB TD])),"Red",SUM('full volumes'[Total BB])>(0.9*SUM(Accounts[BB TD])),"Green","Orange")
 
Thanks
 

 

2 REPLIES 2
latimeria
Solution Specialist
Solution Specialist

Hi @NickM11 ,

Switch stop when the first condition is met.

So you can do:

switch(

  true(),

x<0.7,"Red",

x<0.9, "Orange",

"Green"

)

 

mpraka
Advocate II
Advocate II

Hi,

 

You can also try/do it with Conditional formating in Fill colors --> Rules --> and selecting the values fields.
Gauge.JPG
Here i have just given few sample data for color logic between 0-10 and you can see 6 is falling under yellow.

Thank you
Prakash

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 Fabric 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