cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MCornish
Responsive Resident
Responsive Resident

Multi Row Card Conditional Formatting

So odd scenario here.

 

I have a multi row card where I am conditionally formatting the bar colour. If every row has the same colour key then it works fine, as soon as one is different they all turn grey (not one of my options). 

 

See images

 

All green.PNGAll Grey.PNG

Rules.PNG

 

Is this an issue with the visualisation or am I being a tool?

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @MCornish 

 

Unfortunately that's the way conditional formatting works on Multi Row Card.  It's not really working as you'd expect, and as a result it's not very useful.

 

What's it's actually doing is looking at all the values in the Colour Key column.  If you set your CF Rules so that you want to apply different colours to different values (as you have) - PBI doesn't know what to do because some values in the Colour Key column are 0 and some are 1.  It can't apply 2 rules to all the card rows, so it makes them grey.

mrc1.png

 

If you only have 1 CF Rule, or you choose to format by an aggregation like Minimum, so you set it to colour the bars based on the Minimum of the Colour Key

mrc2.png

 

Then it makes all bars red because the min in the Colour Key column is 0, and there's a rule to match that value.

 

Likewise if you format for the max value to be 1 it can find 1 in the Colour Key column and find a matching rule, so all bars are green.

mrc3.png

 

It's not clear this is how it works and it's not very useful.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
NourJ
Helper II
Helper II

Hi, Is there any solution for this?

PhilipTreacy
Super User
Super User

Hi @MCornish 

 

Unfortunately that's the way conditional formatting works on Multi Row Card.  It's not really working as you'd expect, and as a result it's not very useful.

 

What's it's actually doing is looking at all the values in the Colour Key column.  If you set your CF Rules so that you want to apply different colours to different values (as you have) - PBI doesn't know what to do because some values in the Colour Key column are 0 and some are 1.  It can't apply 2 rules to all the card rows, so it makes them grey.

mrc1.png

 

If you only have 1 CF Rule, or you choose to format by an aggregation like Minimum, so you set it to colour the bars based on the Minimum of the Colour Key

mrc2.png

 

Then it makes all bars red because the min in the Colour Key column is 0, and there's a rule to match that value.

 

Likewise if you format for the max value to be 1 it can find 1 in the Colour Key column and find a matching rule, so all bars are green.

mrc3.png

 

It's not clear this is how it works and it's not very useful.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors