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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
procu
New Member

Filter a Matrix to show only fields with values

Hello!

 

I'm building an info dashboard and I need to show many data in form of a table. In one part I'm building a matrix, using the the data base columns as values and selecting the option "change values to rows" to view the matrix as a vertical table, like this:

procu_0-1654187027881.png

 

As you can see, there are many fields (columns) in the matrix that doesn't have any data. I was thinking if perhaps there is a way to filter the table (matrix) to only show the fields that contain info (of any kind) and filter out the ones that are empty.

 

Thanks in advance for your help.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @procu ,

Please refer to my pbix file to see if it helps you.

Create a measure.

Measure = IF(MAX('Table (2)'[value])=BLANK(),BLANK(),1)

Then filter the measure.

vpollymsft_0-1654579616122.png

vpollymsft_1-1654579693738.png

If I have misunderstood your meaning, please provide your pbix file without privacy inforamtion and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @procu ,

Please refer to my pbix file to see if it helps you.

Create a measure.

Measure = IF(MAX('Table (2)'[value])=BLANK(),BLANK(),1)

Then filter the measure.

vpollymsft_0-1654579616122.png

vpollymsft_1-1654579693738.png

If I have misunderstood your meaning, please provide your pbix file without privacy inforamtion and desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Syk
Super User
Super User

Use the field you want to filter on and in the filter pane select the "is not blank" option under advanced filters

Syk_0-1654187481021.png

 

Thanks for your answer but this does not work because when you select the filter "is not blank", the matrix will be filtered by the empty values that correspond to the field. What I want is, for example, if a choose to view the info of "X" person, and the column "Last Name" doesn't have any value, then the matrix should not show the the column "Last Name" for the person "X" because it's an empty value.

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!

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.