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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
dalmn21
Frequent Visitor

Hide Row in Matrix

Hi, 

 

I want to hide the rows of a column in a matrix, but not running across anything that's helping me. 

My matrix is similar to this: 

MonthJanJanJan
NamePay Per HourSalesTotal Pay
John Doe201262431
Jane Doe231152502


I want to hide the names of the employees but still have their data shown. 

MonthJanJanJan
 Pay Per HourSalesTotal Pay
 201262431
 231152502

 

Is there a way to do this? My name column is in the 'Rows' field, month is in the 'Columns' field, and pay per hour, sales, and total pay are in the 'Values' column 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @dalmn21 

 

Since Power BI does not directly allow hiding row headers while keeping the data, you can create a calculated column in your data model that anonymizes or replaces the employee names.

NName = "name" & RANKX(ALL('Table'),'Table'[name],,ASC)

vjialongymsft_0-1711432820404.png

 

 

 

 

Best Regards,

Jayleny

 

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 @dalmn21 

 

Since Power BI does not directly allow hiding row headers while keeping the data, you can create a calculated column in your data model that anonymizes or replaces the employee names.

NName = "name" & RANKX(ALL('Table'),'Table'[name],,ASC)

vjialongymsft_0-1711432820404.png

 

 

 

 

Best Regards,

Jayleny

 

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

 

 

Thank you so much for your help! It works, but I have one question. I created the column and added it to my matrix, the names become "name [numbers]", I assume it's from the RANKX function that's adding the numbers behind the name. Is there a way I can just have it say "name" for all the names? Thank you! 

Greg_Deckler
Community Champion
Community Champion

@dalmn21 Make the header row the same color as the background? Put a filled rectangle over the header?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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