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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
DR2022
Helper I
Helper I

Sign positive in value of the measure

Hi! I coded a conditional measure inside a SWITCH function to color the values. For negative values ​​it turns green, as it is a tax reduction. On the contrary, for positive values ​​it turns red, as it is tax increasing. For 0 it turns grey. But I would like the plus sign (+) to also appear in front of the number as well as the minus sign, to accentuate the increase. I am not able to do this in the measure. 

 

Conditional1 = SWITCH(TRUE(), [VarUltVlr]<0,"Green", [VarValue]>0,"Red", "Grey")

 Imagem1.pngImagem2.png

1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hi @DR2022 , try to create a new measure:

New Var = IF ([VarUltVlr]<0,[VarUltVlr],
                IF ([VarUltVlr]>0,"+",0))

 

Best Regards

View solution in original post

2 REPLIES 2
Bifinity_75
Solution Sage
Solution Sage

Hi @DR2022 , try to create a new measure:

New Var = IF ([VarUltVlr]<0,[VarUltVlr],
                IF ([VarUltVlr]>0,"+",0))

 

Best Regards

It works! I created a new measure but I put / "+"&FORMAT([VarUltVlr], "Percent") / as value if true. The second IF it was not necessary.

 

Thank you very much!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.