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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Color Conditioning in Area Chart

Hi All!

 

I'm looking to see if there is a way to color condition based on the total calculation in an area chart. So, if I'm doing a division calculation, broken up by months, I'd like the entire line chart to turn red or green based on the total divison rather than the latest division if that makes sense. Does anyone know if this is possible, and if so, how it's done?

 

Thank you!

3 REPLIES 3
Anonymous
Not applicable

@Anonymous 
I am thinking to create measure to be used in conditional format. But not sure whether it is supported with your current situation. Can you provide a sample with image to visually explain this.

 

 

Paul Zheng _ Community Support Team

Anonymous
Not applicable

Hi @Anonymous, apologies for the delay in my response. I'm hoping to color code the entire area chart based on the total calculation. I developed a quick example here. So taking this example, if the goal were to bring the total calculation to below 0.10, the chart will stay red (since it's 0.44 right now) until it reaches 0.09. Does that make sense? If so, how can this be done?

kw101_0-1617173319536.png

 

Anonymous
Not applicable

To further elaborate, I'd like to specifically compare the total calculation to my own goal. So say, the total division (not at all considering the dates) is $2.3M, and my goal is to have $3M or less. That means I'm meeting my goal and want the entire line chart to highlight green. If my total division is $4M, then I wouldn't be meeting my goal and want the entire line chart to highlight red. Thanks in advance!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.

Top Solution Authors