Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I have here a matrix that counts all the responses and shows the value as a percentage of the row total:
Is there a way to at least make the whole column of each with different colors?
Unfavorable - Red
Neutral - Yellow
Favorable - Green
I tried the usual conditional formatting where the lower the value, the red it gets and the higher the value, the green it gets but this is the result:
The colors are not matching up. Please note that these are not columns. They are rows that were put in columns to count each and get the percentage of the row total per category. Any help would be appreciated!
Solved! Go to Solution.
Hi @RLSid17 ,
According to your description, I create a sample.
Here's my solution.
1.Put Catetory in Matrix Rows, put Vote both in Matrix Columns and Values. In Values field, select Count and Show value as Percent of row total.
2.Create a measure.
Color =
SWITCH (
MAX ( 'Table'[Vote] ),
"Favorable", "Green",
"Unfavorable", "Red",
"Neutral", "Yellow"
)
3.In the Values pane, select Conditional formatting>Backgroud color.
Select Field value style and select the measure in the option.
Get the correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RLSid17 ,
According to your description, I create a sample.
Here's my solution.
1.Put Catetory in Matrix Rows, put Vote both in Matrix Columns and Values. In Values field, select Count and Show value as Percent of row total.
2.Create a measure.
Color =
SWITCH (
MAX ( 'Table'[Vote] ),
"Favorable", "Green",
"Unfavorable", "Red",
"Neutral", "Yellow"
)
3.In the Values pane, select Conditional formatting>Backgroud color.
Select Field value style and select the measure in the option.
Get the correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you! This works perfectly! Last query, is there a way to colour the empty data?
Hi @RLSid17 ,
It's my pleasure!
Unfortunately the empty data cannot be colored.
Best Regards,
Community Support Team _ kalyj
No worries! I was able to just change the color of the background values to Grey while it retains the conditional formatting.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |