- 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

Power BI conditional formatting per column in Matrix
Hello,
I have a matrix in PowerBI with rows item category, item description, the column Year and the values Sales before Returns, Returns in Euro and Returns Quotas. The data looks like this:
Article Category | Item description | Revenue before returns | Returns in Euro | Returns rate | Year | Retourn |
B | C | 50 | 10 | 0,2 | 2021 | 0 |
B | D | 100 | 36 | 0,36 | 2019 | 1 |
A | E | 150 | 5 | 0,03333333 | 2022 | 1 |
A | F | 200 | 35 | 0,175 | 2019 | 0 |
B | C | 300 | 87 | 0,29 | 2022 | 1 |
B | D | 250 | 10 | 0,04 | 2019 | 1 |
A | E | 50 | 36 | 0,72 | 2019 | 1 |
A | F | 100 | 5 | 0,05 | 2019 | 1 |
In Power BI the matrix looks like this:
My client wants the Returns rate column to be formatted based on the total in that column.
If above the total value of the column, the formatting should be red, below green.
It try it using
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I found a Soulotion.
First, I calculated the Amount of Return.
Returns per year = DIVIDE(CALCULATE(Messure[Returns in Euro],ALLSELECTED(T1[ItemCategoryReference])),CALCULATE(Messure[Sales before Returns],ALLSELECTED(T1[ItemCategoryReference]),0)*100
To get the Return Ratio. I used this Measure
For the Color-Condion
Color 2 = if(Messure[returns rate]>Messure[returns per year], "red", "green")
I then used Color 2 as Field value in conditional formatting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I found a Soulotion.
First, I calculated the Amount of Return.
Returns per year = DIVIDE(CALCULATE(Messure[Returns in Euro],ALLSELECTED(T1[ItemCategoryReference])),CALCULATE(Messure[Sales before Returns],ALLSELECTED(T1[ItemCategoryReference]),0)*100
To get the Return Ratio. I used this Measure
For the Color-Condion
Color 2 = if(Messure[returns rate]>Messure[returns per year], "red", "green")
I then used Color 2 as Field value in conditional formatting.

- 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

k, so I think this video could help you.
around 11 minutes it is the same problem as you

- 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

hy dont you use conditionneal formatting, it will be easier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Since it then refers to the entire matrix and not to the column.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
03-05-2023 03:03 PM | |||
07-19-2023 01:38 AM | |||
09-22-2021 03:40 AM | |||
12-05-2023 03:43 AM | |||
06-14-2024 03:08 AM |
User | Count |
---|---|
123 | |
103 | |
84 | |
49 | |
46 |