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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
anjuunni_06
New Member

Colour coding using conditional format -using measure not working

Hi,

I wrote a measure for colour formatting using conditional formatting for the subtitle of a slicer. The measure is given: 

Colour Format Rev Trend =
VAR Var_1=[Variance-RM]
VAR Result=
SWITCH(TRUE(),
Var_1 > 0, "#145a5a",
Var_1 = 0, "#999999",
Var_1 <0, "#C73D40")
Return
Result
It is showing the colour name  #145a5a instead of showing green colour. 
Please help.
Thank You
 
1 REPLY 1
Idrissshatila
Super User
Super User

Hello @anjuunni_06 ,

 

I tried it and the measure is working normally as in the screenshot.

 

Idrissshatila_0-1690187739749.png

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.