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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.