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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Conditional Formatting for line and stacked column chart

Hi,

How do i apply conditionaly formatting on Actual and forecast data on my chart?

 

I am using line and stacked column chart and the values are Weekdate (Shared Axs), Actuals (Column Values) and Forecast (Line values). Condition

if Actual> budget then green or else red. Please share your thoughts.

 

WeekDateActualForecast
02/16/2022100 (Red line)110 (Green line)
02/23/2022200 (Green line)180 (Red lline)

 

Regards,

Venkat

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

I created a sample pbix file(see attachment) for you base on your provided info, please check whether that is what you want.

1. Create a measure as below to judge the compare the size of Actual and Forecast

Measure = IF ( SUM ( 'Table'[Actual] ) > SUM ( 'Table'[Forecast] ), 1, 0 )

2. Make conditional formatting on Columns field(not Lines field) 

yingyinr_0-1645782082562.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Can anyone please share your thoughts?

Hi @Anonymous ,

I created a sample pbix file(see attachment) for you base on your provided info, please check whether that is what you want.

1. Create a measure as below to judge the compare the size of Actual and Forecast

Measure = IF ( SUM ( 'Table'[Actual] ) > SUM ( 'Table'[Forecast] ), 1, 0 )

2. Make conditional formatting on Columns field(not Lines field) 

yingyinr_0-1645782082562.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you.. its really helped

amitchandak
Super User
Super User

@Anonymous , if you are using legend, conditional formatting is not supported.

if can use clustered line visual then you can try

 

Try with both columns on the shared axis and concatenate label off, as I discussed in this video

Concatenate Label off : https://youtu.be/QgI0vIGIOOk

 

You will be able to use conditional formatting

Anonymous
Not applicable

@amitchandak your solution is not working in my case.. 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.