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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
hideakisuzuki01
Helper II
Helper II

How to apply the same format for the whole total row

Hi,

I have a trivial question but I have been asked to make the format exactly the same as other system so here goes.

I have the below matrix but as you can see, the background color is only applied to the total values, but not to the "Total" nor the row total value("5,350").

Is there any way to apply the same background color all the way to "Total" and "5,350" in the below screenshot ?

hideakisuzuki01_0-1655202419498.png

 

Please note that I dont want to apply the blue background to the whole row headers, only the "Total".  

And likewise I only want the blue background for "5,350" , but not the whole row totals.

Is this possible ?

 

 

1 ACCEPTED SOLUTION
FarhanAhmed
Community Champion
Community Champion

Create a DAX Expression for colors

 

Color = IF(HASONEVALUE(Table[year]),"White","Sky Blue")

 

Set the background of the value as and apply to totals only

 

FarhanAhmed_0-1655203916669.png

 

you will get below results

 

FarhanAhmed_1-1655204072547.png

 

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
hideakisuzuki01
Helper II
Helper II

Worked great, thanks Farhan!

FarhanAhmed
Community Champion
Community Champion

Create a DAX Expression for colors

 

Color = IF(HASONEVALUE(Table[year]),"White","Sky Blue")

 

Set the background of the value as and apply to totals only

 

FarhanAhmed_0-1655203916669.png

 

you will get below results

 

FarhanAhmed_1-1655204072547.png

 

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




like wise if you want only totals to be colored change the color expression

Color = IF(HASONEVALUE(Table[Year]) || HASONEVALUE(Table[Month]),"White","Sky Blue")

 

FarhanAhmed_0-1655204223887.png

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors