Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 47 | |
| 44 | |
| 20 | |
| 20 |
| User | Count |
|---|---|
| 73 | |
| 72 | |
| 34 | |
| 33 | |
| 31 |