- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Conditional Formatting - Matrix Table
Hi Team,
I have below table and created Matric table in PI file, now I need to highlight rows wise if value mismatch.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

So if I understood correctly all values in the same category should be the same, otherwise be highlighted. Find attached my proposed solution. I adapted @NikhilChenna 's recommendation into this formula:
Color Logic = IF(SUM('Table'[Cat14]) <> SUM('Table'[Cat15]) || SUM('Table'[Cat14])<> SUM('Table'[Cat16]) || SUM('Table'[Cat15]) <> SUM('Table'[Cat16]), "#FF7F7F", "#FFFFFF")
You would need to pivot your table though, assuming you don't have other data.
Did I answer your question? Give your kudos and mark my post as a solution!
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
Please follow the below steps to get your conditional formatting,
- Select the matrix visual in Power BI Desktop.
- Click on the "Format" pane (paint roller icon) on the right side.
- Under the "Values" section, select the field that corresponds to the values in columns 14, 15, and 16.
- Scroll down to the "Conditional formatting" section and click on the ellipsis (...) button.
- Choose "Background color scales" or "Font color scales" based on your preference.
- In the "Minimum" and "Maximum" conditions, set the rules for when the entire row should be colored.
- For your case, you want to color the row when the values in columns 14, 15, and 16 do not match. You can use the following steps:
- Click on "Add rule."
- Set the condition as "is not equal to."
- Specify the field or value for comparison. You may need to write a DAX expression to compare the values in columns 14, 15, and 16. For example, if your fields are named [Column14], [Column15], and [Column16], the DAX expression could be something like:4. Set the color for when this condition is met.=IF([Column14] <> [Column15] || [Column14] <> [Column16] || [Column15] <> [Column16], 1, 0)
- Click "OK" to apply the conditional formatting.
These steps should help you achieve the desired result of coloring the entire row when the values in columns 14, 15, and 16 do not match. Adjust the DAX expression and conditional formatting rules as per your specific dataset and requirements.
Regards,
Nikhil Chenna
If your issues resolves select my post as a solution and gives a thumbsup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @NikhilChenna
If the 14,15 and 16 is the single column then what is the dax function, Please advise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
You can try the below ,
=IF([Value] <> EARLIER([Value]), 1, 0)
Regards,
Nikhil Chenna
If your issues resolves select my post as a solution and gives a thumbsup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

What would be the criteria to determine if a value is a mismatch?
Did I answer your question? Give your kudos and mark my post as a solution!
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Which values do you want to compare I meant?
Did I answer your question? Give your kudos and mark my post as a solution!
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

So if I understood correctly all values in the same category should be the same, otherwise be highlighted. Find attached my proposed solution. I adapted @NikhilChenna 's recommendation into this formula:
Color Logic = IF(SUM('Table'[Cat14]) <> SUM('Table'[Cat15]) || SUM('Table'[Cat14])<> SUM('Table'[Cat16]) || SUM('Table'[Cat15]) <> SUM('Table'[Cat16]), "#FF7F7F", "#FFFFFF")
You would need to pivot your table though, assuming you don't have other data.
Did I answer your question? Give your kudos and mark my post as a solution!
Proud to be a Super User!

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
04-09-2024 06:20 AM | |||
Anonymous
| 04-18-2024 12:46 AM | ||
07-19-2023 01:38 AM | |||
12-05-2023 03:43 AM | |||
08-18-2023 09:50 AM |
User | Count |
---|---|
117 | |
99 | |
84 | |
53 | |
47 |