Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
In my PowerBi report, I have added a guage chart, and applied conditional formatting, based upon 2 values:
If the actual value is more than target, then the gauge chart will be green otherwise red. Now, based upon the data selected in a multi select drop down, the values of both 'Target' and 'Actual value' changes. Therefore, I want to have a dynamic conditional formatting for the guage chart where the conditional formatting for color is applied correctly according to different targets and their respective actual values.
For example:
Target; | Actual Value; | Color of Chart |
85 | 84 | Red |
77 | 79 | Green |
65 | 71 | Green |
However, as displayed in the attached screenshot, the highlighted box expects a hardcoded numeric value. Please advise how to achieve this. Thanks in advance.
Solved! Go to Solution.
Hi @v-ankitgupta ,
Please try:
Color = IF(SUM('Table'[Actual Value;])>SUM('Table'[Target;]),"Green","Red")
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-ankitgupta ,
Please try:
Color = IF(SUM('Table'[Actual Value;])>SUM('Table'[Target;]),"Green","Red")
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
A very belated thank you for posting this, works like a dream!
It worked Jianbo, Thank you very much.
User | Count |
---|---|
131 | |
74 | |
70 | |
58 | |
53 |
User | Count |
---|---|
190 | |
97 | |
67 | |
62 | |
54 |