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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply

Matrix - hiding row totals for specific column, but keeping values for column total?

Hi all, 

 

Not sure if this is possible, but assuming I have this visual

 

 HQ Field Total 
MonthStaffHoursStaffHoursStaffHours
141601405200
24160004160
352202807300
441601405200
Total19700416021860

 

Is there anyway to get the visual to display the following - essentially hiding the row totals but still counting them in the column? Ideally I'd want a solution that didn't rely on setting the maximum hours as the total and hiding the lower values, as there's also times when I may want to use an average value at the bottom. 

 HQ Field Total 
MonthStaffHoursStaffHoursStaffHours
14160140  
2416000  
35220280  
44160140  
Total19700416021

860

 

Any suggestions welcome! 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @twofingertyper 
You can manipulate subtotals and totals with dax "isinscope" function.
For example to get the matrix as in the picture :

Ritaf1983_0-1718996609207.png

I used measures with the logic :

Sales with blank subtotals =

if(ISINSCOPE('Customers'[Country])|| NOT ISINSCOPE('Calendar'[Year]),[Total sales (K/$)],"")

Profits with blank subtotals =
if(ISINSCOPE('Customers'[Country])|| NOT ISINSCOPE('Calendar'[Year]),[total profits (K/$)],"")
Ritaf1983_1-1718996759968.png

The pbix with the example is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2

@Ritaf1983 - this was perfect - thank you! 

Ritaf1983
Super User
Super User

Hi @twofingertyper 
You can manipulate subtotals and totals with dax "isinscope" function.
For example to get the matrix as in the picture :

Ritaf1983_0-1718996609207.png

I used measures with the logic :

Sales with blank subtotals =

if(ISINSCOPE('Customers'[Country])|| NOT ISINSCOPE('Calendar'[Year]),[Total sales (K/$)],"")

Profits with blank subtotals =
if(ISINSCOPE('Customers'[Country])|| NOT ISINSCOPE('Calendar'[Year]),[total profits (K/$)],"")
Ritaf1983_1-1718996759968.png

The pbix with the example is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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