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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

Grouping values and toggling visibility of details

Hi community

 

I've the following challenge. I've a table which looks like this:

CustomerProduct#Products#Shop visits#Internet visitsShop salesInternet sales
122298300200

 

In my report I need a matrix which looks like this

   #Visits  Sales  
CustomerProduct#ProductsTotal#Shop visits#Internet visitsTotalShop salesInternet sales
122100298500300200

 

I know it's easy to get the 2 total columns but what I need is: I'd like to toggle the visibility of the details like I can do it on row groups. I've tried it with out of the box grouping but teh result wasn't very satisfying.

 

Can you help me?

 

Thanks

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Maybe you can do like this.

v-lionel-msft_0-1596767777492.png

 

Best regards,
Lionel Chen

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

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hello

I've created a hierarchy which I named "Column Group" (contains "Visits" and "Sales") and "Columns" (contains "Shop visits", "Internet visist", "Shop sales" and "internet sales"). If you put this hierarchy into columns of the matrix and you choose drilling columns you can switch show only the groups or groups and details. Unfortunatly it's not possible to have a + symbol like in a row hierarchy.

Hope that helps.

v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Maybe you can do like this.

v-lionel-msft_0-1596767777492.png

 

Best regards,
Lionel Chen

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

Anonymous
Not applicable

Hi Lionel

 

Thanks, it works.

 

Best 

Rainer

Anonymous
Not applicable

Hi Lionel Chen

 

Thanks for your message. Do you mean a measure group? I've tried this but I didn't managed to toggle the visibilty of the detail of this group. Did you?

 

Best

Rainer

Hi @Anonymous ,

 

This is similar to the date hierarchy.

You can manually drag and drop the fields in the ‘Field’ pane on the right.

 

--Hold down the left mouse button and manually drag the field.

v-lionel-msft_0-1597139078402.png

 

Best regards,
Lionel Chen

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

 

 

amitchandak
Super User
Super User

@Anonymous , You have to do some column grouping for that.

column header grouping
https://www.daxpatterns.com/dynamic-segmentation/
https://community.powerbi.com/t5/Desktop/Matrix-Display-Values-above-Columns/td-p/256905
https://community.powerbi.com/t5/Desktop/grouping-measure-results/td-p/456795

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello Amit Chandak, 

 

Thanks again for your answer. I solved it in an other way but your answer is very helpfull for me for a task I got yesterday.

 

Best regards

Rainer

Anonymous
Not applicable

Hi Amit

 

Thanks for the message. I will try it and give you a feedback.

 

Best 

Rainer

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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