cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
VOx15
Helper I
Helper I

Expanding and collapsing values in a matrix

Hello, 

 

I have a matrix in Power Bi that has rows by a certain category and column as another category as well. And then i have 4 measures in my values. 

 

Is there a way to show only one measure and then collapse the rest?

 

The matrix is hard to read with all four measures. It would make it easier if they just saw the most impartant measure and if they need more details they can expand and see the other measures. 

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

Hi @VOx15 ,

 

Sorry for that only the outermost field will have (+) (-) signs. The sign only show in the left.

So we create the slicer to control the Measure which you want to show.

 

expanding1.jpg

 

expanding2.jpg

 

Or you can put the measure column to first row, but we think it is not what you want.

 

expanding3.jpg

 

Perhaps you can submit the requirement to ideas and add your comments there to make this feature coming sooner : https://ideas.powerbi.com/forums/265200-power-bi-ideas

 

Best regards,

 

Community Support Team _ zhenbw

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

6 REPLIES 6
v-zhenbw-msft
Community Support
Community Support

Hi @VOx15 ,

 

Sorry for that only the outermost field will have (+) (-) signs. The sign only show in the left.

So we create the slicer to control the Measure which you want to show.

 

expanding1.jpg

 

expanding2.jpg

 

Or you can put the measure column to first row, but we think it is not what you want.

 

expanding3.jpg

 

Perhaps you can submit the requirement to ideas and add your comments there to make this feature coming sooner : https://ideas.powerbi.com/forums/265200-power-bi-ideas

 

Best regards,

 

Community Support Team _ zhenbw

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

@VOx15 , Collapse of measure is not possible unless you convert them into dimension values.

 

An approach like this topic in the past:https://community.powerbi.com/t5/Desktop/Matrix-Display-Values-above-Columns/td-p/256905

or you can create a measure slicer https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...

nandic
Memorable Member
Memorable Member

You can add +/- expander to crosstab rows, but can't add it to crosstab columns.
Would bookmarks help in your case?
You can create one main crosstab with main measure and add a button besides. Clicking on this button detailed crosstab (with all measures) will "replace" main crosstab. And on this new view you will add another button which can return users to main crosstab.

Crosstab has option to drill down/up, but using bookmarks you can make it much more convenient for use.

I still need to show the main cross tab. Currently have the matrix set up like this, where the values show on rows

matrix.PNG

I would like to only show measure one then have a + to show the rest of the measures. Is that possible?

 @nandic  @amitchandak 

Hi @VOx15 ,

 

We need to create a measure table and a new table, then create a measure to meet your requirement.

 

1. Create a measure table using Enter Data.

 

expand1.jpg

 

2. Then create a new table using crossjoin function.

 

Table 2 = CROSSJOIN('Table','Measure Table')

 

expand2.jpg

 

3. At last, we can create a measure and put it in Values in a matrix like the following screenshot.

 

Measure = 
SWITCH(
    TRUE(),
    MAX('Table 2'[Column1])="Measure 1",CALCULATE([Measure 1],FILTER('Table','Table'[City]=MAX('Table 2'[City]) && 'Table'[Town]=MAX('Table 2'[Town]))),
    MAX('Table 2'[Column1])="Measure 2",CALCULATE([Measure 2],FILTER('Table','Table'[City]=MAX('Table 2'[City]) && 'Table'[Town]=MAX('Table 2'[Town]))),
    MAX('Table 2'[Column1])="Measure 3",CALCULATE([Measure 3],FILTER('Table','Table'[City]=MAX('Table 2'[City]) && 'Table'[Town]=MAX('Table 2'[Town]))))

 

expand3.jpg

 

expand4.jpg

 

expand5.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

 

Best regards,

 

Community Support Team _ zhenbw

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

 

BTW, pbix as attached.

Yes! I was looking for something like that. Is there a way to have the (+ ) and (-) sign next to the measures instead of the city? 
@v-zhenbw-msft 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors