This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi All,
I have a client that wants to shade the values in the matrix red if that value is less than the subtotal in that column, and shade it green if the value is more than the subtotal in that column. So I need to create a measure that will allow me to use the conditional formatting function.
I have a matrix that has customers as the rows, products as the solumns, and average sale price as the values. The column subtotals are the average sale price for the whole column (product). So if a customer has an average sales price for product X that is less than the overall average sale price of product X, that value should be shaded red. If a customer has an average sales price for product X that is higher than the overall average sales price of product X, that value should be shaded green.
I appreciate your help!
This option is already available in power bi. Please refer to the below article.
Hi,
I already know how to conditional format. But I need help to base it off of the subtotals in the matrix. I either need a measure that is a 1 if selected value is higher than the subtotal for all, or a 0 if the selected value is lower than the subtotal for all. Then, use the value of this measure to create the conditional formatting. I am not sure how to make this measure though.
Thanks
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |