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
JohnS1968
New Member

Show only grand total in matrix

Hi all,

 

Is there some way of hiding all values (subtotals and individual category values) from a column leaving just the grand total in the bottom?

 

What I mean is that I have this:                   

JohnS1968_0-1662996052805.png   

 

And I need it to show up like this:

JohnS1968_2-1662996233603.png

The pink fields are subtotals for each country/group of categories.

 

Cheers,

J.

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Here is one way:

Assuming:

Group of categories field = Table A[Group of categories]

Country field = Table B [Countries]

Variance measure = [Variance]

 

Use a measure along the lines of

Only totals =
SWITCH (
    TRUE (),
    ISINSCOPE ( 'Table A'[Group of categories] ), BLANK (),
    ISINSCOPE ( 'Table B'[Countries] ), BLANK (),
    [Variance]
)

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

4 REPLIES 4
PaulDBrown
Community Champion
Community Champion

Here is one way:

Assuming:

Group of categories field = Table A[Group of categories]

Country field = Table B [Countries]

Variance measure = [Variance]

 

Use a measure along the lines of

Only totals =
SWITCH (
    TRUE (),
    ISINSCOPE ( 'Table A'[Group of categories] ), BLANK (),
    ISINSCOPE ( 'Table B'[Countries] ), BLANK (),
    [Variance]
)

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Worked as a charm, thanks 🙂

mahoneypat
Employee
Employee

Please check out the Row Subtotals options in the visual. You can select which fields to show subtotals for. In this case, I have it turned off for Product but on for Category.

 

mahoneypat_0-1662998935887.png

mahoneypat_1-1662998950479.png

 

Pat

 

 

 

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amitchandak
Super User
Super User

@JohnS1968 , Under the row subtotal, Remove all subtotal, other than the first level. 

 

amitchandak_0-1662998816240.png

 

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.