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
allondon
Regular Visitor

Conditional formatting of the graph

Hi everyone,

 

I'd appreciate some hints (or solutions) to implement the following:

 

We have 2 tables with thse relevant fields:

Table A: Sum_of_fail, RuleID, Dimension

Table B: RuleID, Dimension, Criticality.

 

They are currently linked on RuleID and can be linked on Dimension.

 

The current visual represents Sum_of_fail by Dimension (something like this).

 

 

allondon_1-1752488243090.png

 

 

We would like to represent Criticality within each dimension (something like this):

 

allondon_2-1752488623013.png

 

Basically, for each record from Table A we want to get its Criticality (High, Medium, Low) from Table B by RuleID and represent the count on the graph in a different colour. It can be any type of the graph (bar chart may be the easiest) and the count per each colour (Criticality) can be diplayed anywhere in the visual.  The purpose is to display how many failures within each dimension are of High Criticality together with the Total.

 

Thanks in advance.

 

9 REPLIES 9
allondon
Regular Visitor

Hi everyone,

 

Thanks for your help.

 

So far, it has not been possible to implement as desired: count by dimension by criticality. It may be possible using DAX.

 

The compromised solution is to have counts by criticality using different colours:

allondon_0-1752656690602.png

If there is a way to further split by dimension - this will satisfy the original requirement.

Hi @allondon 
Glad to hear your issue has been resolved. Please mark the relevant replies as accepted solutions so others facing the same issue can find them easily.

Thanks.

sanalytics
Super User
Super User

@allondon  Can you give us some dummy data along with your pbix file?? we can try from our end.

 

Regards,

sanalytics

Thank you. I am not allowed to share pbix with a real dataset, but here is the link to a template pbit file and sample data if this can be used.https://drive.google.com/drive/folders/1r_pvOa3YM1IBty6jw9mdKGIUSFavsvCk?usp=sharing 

allondon
Regular Visitor

Thank you.

amitchandak
Super User
Super User

@allondon , In stacked visual, we can not use conditional formatting as of now.

 

Make sure, legend is sorted on name, and you choose static color 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Does this mean conditional formatting will not work for any chart type? I was trying to implement something in DAX, but no luck so far. Thank you.

@allondon . Conditional formatting works for a chart with One Measure and no legends. 

A stacked visual will always have a legend. 

I can create a bar visual with multiple axes and expand than and do conditional formatting using field values or rule based. 

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @allondon 

Thank you for reaching out to the Microsoft Fabric Forum Community. 
@amitchandak Thanks for the inputs.

The suggestions provided by the user are very helpful. As mentioned, Conditional formatting applies to charts that have a single measure and do not include legends.

Did you try the user’s suggestion? Has your issue been resolved? If not, please let us know and we will be happy to assist you further.


Thanks.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors