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.
I have a table that shows values for different KPIs, for a specific date:
From the month and year columns I also created another column named Date.
I have one clustered column chart that shows the monthly evolution for a specific indicator for the last 3 years and in another clustered column chart below this one I want to show the growth between years - these look something like this:
My problem is that I wanted to initially conditional format the % chart to have the columns green if the value is positive and red if the value is negative. From what I read in various threads you cannot really do that, so instead I want to at least adapt the color of the Labels based on the value displayed - red for negative values, green for positive. So I've tried to format the labels by field value, based on a measure I created named KPI Label Color:
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
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.