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
Si_7777
Advocate II
Advocate II

Easy Conditional Format

Is there a simple way to turn minus numbers to red and positive to green.  The whole conditional format dialog per measure is so long winded and convoluted.  Having to setup a large minus number and large positive number per measure is laborius.

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Si_7777 

I think then you need to create a measure for color setting.

 

measure color = SWITCH(TRUE(),[Measure]>0,"#008000",[Measure]<0,"#FF0000")
 
then choose field value and select the measure for color setting.
 
11.png
 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
ryan_mayu
Super User
Super User

@Si_7777 

I think then you need to create a measure for color setting.

 

measure color = SWITCH(TRUE(),[Measure]>0,"#008000",[Measure]<0,"#FF0000")
 
then choose field value and select the measure for color setting.
 
11.png
 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Nice, but would I need to write that for every measure I want to colour.

Anonymous
Not applicable

Hi @Si_7777,

 

Thanks for reaching out to the Microsoft Fabric Forum Community.

And aslo Thanks to @ryan_mayu  & @BhavinVyas3003  for prompt and useful responce.


Yes, if you want different measures to have dynamic colors based on their own values, you'd typically need a separate color measure for each because each measure has its own logic and values.

If this helped, please mark the response as the accepted solution and give it a thumbs-up so others can benefit too.

Best regards,
Prasanna Kumar

BhavinVyas3003
Super User
Super User

 

 

  • Select your Table/Matrix visual.
  • Click on the measure → Conditional formatting → Font color.
  • Choose Format by: Rules
    Based on: Same measure
    Add two rules:
    • If value < 0 → Red #FF0000
    • If value >= 0 → Green #00A000
  • Click OK.

 


Thanks,
Bhavin
Problem solved? Hit “Accept as Solution” and high-five me with a Kudos! Others will thank you later!

The choices int he dialog box are not that simple

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.