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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
farhandsome
Helper I
Helper I

Power BI Stacked Data Chart Conditional Formatting

HI all,

 

I have a quick question about using some conditional formatting in Power BI:

 

From what I've read and seen, conditional formatting is not possible on stacked bar charts at this point in time. I was wondering if there was a workaround or other type of chart I could use to mimic the same output. Here is the scenario:

 

Power BI Stacked Bar Chart Example.PNG

 

I have a stacked bar chart here that represents production builds at an assembly station. Each data block is one unique build. What I would like is if the color of the data block would be red or green depending on if the build time (the white numbers shown) is greater or less than the predicted cycle time for that build. For example, for Data Block #1, if the cycle time is 35 minutes and it took 41 minutes to build, this data block would flag red. 

 

I know this may not be possible in stacked column charts, but I was wondering if this could be something that could be done with a workaround or a custom visual? Ideally, something like a stacked gauge chart would be awesome. 

 

Please let me know if you guys have any insight.

 

Thanks,

Farhan

 

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi Farhandsome,

As I know , when you insert field in Legend of chart, you couldn't set the conditinal formatting on data colors. So if you want to set conditional formatting, you could use chart like below

521.PNG520.PNG

Best Regards,
Zoe Zhi

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

1 REPLY 1
dax
Community Support
Community Support

Hi Farhandsome,

As I know , when you insert field in Legend of chart, you couldn't set the conditinal formatting on data colors. So if you want to set conditional formatting, you could use chart like below

521.PNG520.PNG

Best Regards,
Zoe Zhi

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

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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