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 September 15. Request your voucher.

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