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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to hide rows where columns are empty in a Matrix visual

I have a matrix in below format and I would like to hide those ids from the rows where values are not present in each column.. How can I do it??

For eg: below is a (Matrix visual from Power Bi) in below table Under Column "Version" we have columns "Version from plant A" and "Version from plant B" and both columns have values V1 and V2. Now in below reading row, test 2 do not have any reading in Version from Plant B column and hence i would like row test2 to be removed but keep those rows who has reading from both Version From Plant A and Version From Plant B columns

 

Version(Column)                     Version From Plant A                    Version from plant B

                                                                                            

Name(Row)V1V2V1V2
test 12322982
test 28722  
11 REPLIES 11
mahoneypat
Microsoft Employee
Microsoft Employee

You could try to add a new measure like CALCULATE([YourMeasure], Table[Version] = "Plant B") and use it as a visual level filter on that matrix, and filter it to where it is not blank.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

@mahoneypat in my matrix above both V1 and V2 are visuals. so how do I filter that with multiple measures??

You can highlight each visual and add the measures to the Filter Panel, or you can write a single measure that checks if any of the measures is blank and use just that one.

Add a filter to a report in Power BI - Power BI | Microsoft Docs

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

I am not sure what you meant here? you are saying to write two different measure like 
CALCULATE([V1,V2], Table[Version] = "Version from Plant B") 

CALCULATE([V1,V2], Table[Version] = "Version from Plant A") 

 

and then put these two measures in Filter for the matrix Visual?

Can you please provide the Dax where I can have a check on multiple measures.. i dont think above way is correct

Hi  @Anonymous ,

 

Go to filter pane>select all measures are not blank,just like:

v-kelly-msft_0-1622017751034.png

And you will see:

v-kelly-msft_1-1622017815635.png

 

v-kelly-msft_2-1622017845196.png

For my related .pbix file,pls see attached.

 

Best Regards,
Kelly

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

Anonymous
Not applicable

@v-kelly-msft I dont know how it works for you but I did same and I still see empty rows

 

Hi  @Anonymous ,

 

Have you solved the issue?

 

Best Regards,
Kelly

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

Anonymous
Not applicable

No it does not work. I didnt get time to upload the pbix as there are lot of sensitive data but will provide one soon

Hi  @Anonymous ,

 

You could check my .pbix file for details or could you pls upload your .pbix file for test?

Remember to remove the confidential information.

 

Best Regards,
Kelly

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

amitchandak
Super User
Super User

@Anonymous , if all the measures on a row are blank then power will hide that row automatically.

What are the measures and columns(Pivot)  used in case?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak no it does not hide if all the measures for one of the column is blank. What do you mean by What measures and pivot? all the values here are measures.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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