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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

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
Community Champion
Community Champion

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?

Nathaniel_C
Community Champion
Community Champion

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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