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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.