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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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