The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
12 | |
9 | |
7 |