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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors