Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |