Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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")
Solved! Go to Solution.
Hi @DR2022 , try to create a new measure:
New Var = IF ([VarUltVlr]<0,[VarUltVlr],
IF ([VarUltVlr]>0,"+",0))
Best Regards
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
70 | |
68 | |
50 | |
32 |
User | Count |
---|---|
117 | |
100 | |
73 | |
65 | |
40 |