Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Is it possible to remove or hide empty columns in a matrix? Depending on the filtering in my slicers, some of my measures may not return any data for my selections. I'm not using the columns section of the matrix, and I've instead created measures and added them to the values section. To clean up the matrix, I'd like to only show measure columns (values) that return data.
Power BI does a great job of removing blank rows, but can it somehow also remove blank measure columns?
Solved! Go to Solution.
Hi @diablo908
A couple of options for you (sample PBIX attached):
Do either of these methods work for you?
Hi @diablo908
A couple of options for you (sample PBIX attached):
Do either of these methods work for you?
The field parameter solution works for me as I have more measures I need to add to the right of those that may have blanks.
Hi @diablo908 - Yes, you can remove or hide empty measure columns in a Power BI matrix when they return only blank values. Since Power BI automatically removes rows with all blanks but does not remove blank measure columns by default, you need to use a workaround.
Ensure that your measures return BLANK() instead of 0 when they should be hidden. Power BI automatically removes columns where all values are BLANK().
Measure_New = IF( SUM(Sales[Amount]) = 0, BLANK(), SUM(Sales[Amount]) )
If you have multiple measures and want to dynamically remove blank one
Create a new table with a list of your measures.
Use a Disconnected Table approach with a slicer.
Apply logic to only show non-blank measures.
Proud to be a Super User! | |
This doesn't seem to work in practice as far as I can tell. I even tried Measure_New = BLANK() to force all blank and the column is still there.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
78 | |
59 | |
35 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |