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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-rongtiep-msft
Community Support
Community Support

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
v-rongtiep-msft
Community Support
Community Support

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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