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
SolO
Frequent Visitor

Keep Columns Permanent in Matrix

Hello!

I have a matrix with test and control columns where our test group is subdivided into test A and test B. The calculations are perfect and filters work just fine. However, I would want to keep the "Control" columns permanent even after appying filters to say Test A. In that way, I can compare numbers between Control and Test (A or B).

SolO_0-1653579209518.png


Is this possible in Power BI? I am using the native matrix visual.

 

Thanks!

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

Hi @SolO ,

According to your description, I create a sample.

vkalyjmsft_0-1654066559099.png

Here's my solution.

1.Create a new slicer table like this.

vkalyjmsft_1-1654066833316.png

2.Make relationship between the two tables with the item column.

vkalyjmsft_2-1654066863116.png

3.Put the slicer column in the new table in the slicer, get the expected result.

vkalyjmsft_3-1654066918801.png

vkalyjmsft_4-1654066930823.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

5 REPLIES 5
v-yanjiang-msft
Community Support
Community Support

Hi @SolO ,

According to your description, I create a sample.

vkalyjmsft_0-1654066559099.png

Here's my solution.

1.Create a new slicer table like this.

vkalyjmsft_1-1654066833316.png

2.Make relationship between the two tables with the item column.

vkalyjmsft_2-1654066863116.png

3.Put the slicer column in the new table in the slicer, get the expected result.

vkalyjmsft_3-1654066918801.png

vkalyjmsft_4-1654066930823.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

@v-yanjiang-msft , this is wonderful and works exactly as I wanted it to be! Thank you so much for the suggestion!

Nathaniel_C
Super User
Super User

Hi @SolO ,
Not sure what you are trying to do here.  It seems like nothing changes in your pictures except that you are using the slicers to only hide either Test A or Test B columns.  Perhaps you might provide your .pbix and rewrite your explanation.  
If you would share your pbix, or dummy up some values in Excel both for current and expected data. Please copy and paste them into your post, rather than doing a picture, we may be able to help you. 

Please read this post to get your question answered more quickly:

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Nathaniel





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

Proud to be a Super User!




Hi @Nathaniel_C , thanks for your reply. It is exactly like you said - hide the unselected value (e.g. show only Control and Test A if Test A is selected and hide Test B), but keep Control showing all the time. Does that help?

Hi @SolO ,
Are you able to provide the pbix to show how the data is generated that gets into the matrix.  For example is it all in one table? Are there measures written?

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





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

Proud to be a Super User!




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.

Top Solution Authors