Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I am writting Dax intending to make gauge color dynamic based on actual and budget number. Whenven actual number is larger than budget number, the gauge color turns green, otherwise, turns red.
here is what I wrote for DAX:
Appreciate if someone can help me here. thank you!
thanks for your reply. You tried the DAX i wrote above? it's so weird that it works on my other page but here.
Hi Jac1117,
You can try this:
Measure_IF = IF( [Measure A] < [Measure B], "Red", "Green")
The result is:
I also use your DAX code to test . It works good. Result is below:
Measure_switch = SWITCH(TRUE(), [Measure A] < [Measure B], "Red", "Green")
Is this what you expect?
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |