cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SolO
New Member

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-kalyj-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-kalyj-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-kalyj-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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors
Top Kudoed Authors