Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
BobKoenen
Helper IV
Helper IV

Conditional formatting of measure color in DAX

HI all,

I have 2 measures [sales untill today] and [forecast after today]. Which I combine in one measure to get the cumulative total of the actual sales and the remaining forecast         Sales+Remaining Forecast = ([sales until today] + [forecast after today]). 


Now I want to present this measure in a Bar chart with a month axis and I want the [sales unitil today] to be a diffrent color than [forecast after today]. With normal conditional formatting this is not possible because there is only one measure in the bar chart. 

Can you help me achieve this?

1 REPLY 1
dedelman_clng
Community Champion
Community Champion

Hi @BobKoenen - have you tried a stacked column chart? You can put each measure in with a different assigned color, and then turn on the "Total Label" that will show the sum. You could also put the total sum in a tooltip so the user can see if when they hover over it.

 

2021-06-25 08_25_37-Window.png

Hope this helps

David

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.