Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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
Is this an issue with the visualisation or am I being a tool?
Solved! Go to Solution.
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.
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
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.
It's not clear this is how it works and it's not very useful.
Regards
Phil
Proud to be a Super User!
Made an account just to say this defeats the purpose of the multi-row card....
How did they create this but are unable to give cards unique formatting?
Hi, Is there any solution for this?
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.
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
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.
It's not clear this is how it works and it's not very useful.
Regards
Phil
Proud to be a Super User!
It is actually not a solution indeed, just the representation of reality of another poor PowerBi visual that is not working as everyworld is expecting
😕
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
102 | |
87 | |
76 | |
57 | |
55 |
User | Count |
---|---|
113 | |
108 | |
86 | |
79 | |
77 |