Forum Discussion
Conditional formatting for clustered column chart with Legend
Hi MihaiH ,
Please try:
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.
Thank you for your suggestion. I tried this and it doesn't work, it shows all the labels as green, although some are positive and some are negative:
The chart looks like this:
I forgot to mention, the Δ YoY measure looks like this:
Δ YoY = SWITCH(
TRUE(),
max([Year])=2022,CALCULATE(SUM([Value]),[Year]=2022)/CALCULATE(SUM([Value]),[Year]=2021)-1,
max([Year])=2021,CALCULATE(SUM([Value]),[Year]=2021)/CALCULATE(SUM([Value]),[Year]=2020)-1)
Thank you,
Mihai
- v-jianboli-msft3 years agoCommunity Support
Hi MihaiH ,
After testing your measure, it still works fine in my side:
Could you please provide me with more details about your table or share me with your pbix file after removing sensitive data.
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
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.