Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jleo25
New Member

Make Totals on a Matrix Red if Negative

In my matrix I have all positive numbers black and all negative numbers red except for the totals. I have months as my column and departments as my lines, I have totals for both month and department. Is there any way to format these just like the rest of the matrix? I just want positive to be black and negative to be red.

 

 

 

1 ACCEPTED SOLUTION

Hi,

 

We don't have conditional format on Totals.

Create another table of same structure with dept and final amount column next to the existing matrix.

Format Dept column to be hidden (may be column width to "2 points") and do conditional format on Final Amount column.

View solution in original post

7 REPLIES 7
Mond
Helper III
Helper III

We don't have conditional formatting for Totals, but I can suggest to use high level table / matrix for the summation and make conditional format on the values.

Hope this help !

Phil_Seamark
Employee
Employee

Hi @jleo25

 

Yes you can use conditional formatting.  Click the down arrow of the field you would like to apply the conditional formatting to.

 

 

image.png

 

Then choose conditional formatting from the menu and then font colour scales

 

image.png

 

finally configure the conditional formatting dialog for your field as follows

 

image.png

 

Which should give you

 

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

That is how I got all of the other numbers to look how I wanted but it did not change the totals. Maybe I am missing something? I attached a pic of what I am working with, I have everything looking how I want except the totals.

 

Power BI.png

 

 

 

 

Hi,

 

We don't have conditional format on Totals.

Create another table of same structure with dept and final amount column next to the existing matrix.

Format Dept column to be hidden (may be column width to "2 points") and do conditional format on Final Amount column.

Thank you, that is what I was just trying to figure out after reading your 1st post. Thanks again

Anonymous
Not applicable

Hey @jleo25

 

I don't think it's possible to conditionally format the Total row. Hopefully I'm wrong.

 

Parker

I managed to get something working using a Table visual

 

The total line isn't bold, but will switch from red to black depending on totals.

 

I have attached a PBIX file.

 

 (edit - I have slightly updated the PBIX file to make it tidier)


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.