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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
renewtx
Frequent Visitor

Control visibility of data in a matrix based on selection in a table

Hello,

I am just beginning to learn Power BI and I have what I feel like is a very simple use case that I am having issues with.  I have a basic report that displays records from a simple query in a table visual.  In addition I have added a matrix to the same page/report.  What I want is for the matrix to show the details (all columns) for the record that I have selected in my table, similar to the below, and this actually works:

renewtx_0-1737134368010.png

However, what I cannot figure out is, when I first load the screen/report and I have NOT selected any rows yet, I want the matrix to show nothing (or even be hidden).  Currently what happens is the matrix shows ALL records:

renewtx_1-1737134661248.png

 

How can I control:

1. Visibility of the matrix to start (until a record is selected) 

2. Make sure the matrix only ever shows the values associated with the selected row in the table?

 

Is there a better way to do this?  I don't want to use drill down (which seems to require separate pages) and I've looked at tooltips, but that probably won't work due to the potential amount of detail information that needs to be displayed)

 

Thanks

 

1 ACCEPTED SOLUTION
renewtx
Frequent Visitor

Thanks!  That is what I was looking for ... just one more question.  Is there a way to completely hide the matrix?  Currently it still shows the "Index" column ... any way to make that not show if nothing is selected?  I looked at the matrix formatting options and didnt see anything obvious ...

renewtx_0-1737388849878.png

 

View solution in original post

4 REPLIES 4
renewtx
Frequent Visitor

Thanks!  That is what I was looking for ... just one more question.  Is there a way to completely hide the matrix?  Currently it still shows the "Index" column ... any way to make that not show if nothing is selected?  I looked at the matrix formatting options and didnt see anything obvious ...

renewtx_0-1737388849878.png

 

@renewtx,

 

Glad to hear that works. Here's an article that explains how to hide a visual:

 

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/ 





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

Proud to be a Super User!




This was perfect!  Thanks!

DataInsights
Super User
Super User

@renewtx,

 

Try this solution.

 

Create measure:

 

Matrix Filter = 
IF ( COUNTROWS ( ALLSELECTED ( 'Table' ) ) = 1, 1 )

 

Add the above measure as a visual filter:

 

DataInsights_0-1737211933960.png

 

Result:

 

DataInsights_1-1737211970437.png

 

DataInsights_2-1737211989681.png

 





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

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors