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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
HenryMa
Frequent Visitor

How do I hide the "header" in a matrix when doing subtotals?

In a matrix, I don't want to see the "FIRST" value in the header in subtotals.

For example, before:

HenryMa_1-1698431473062.png

I want it to look like this after:

HenryMa_4-1698431858100.png

 

thanks!

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @HenryMa 
To achieve the desired result, you can use the DAX measure for the first column:

subT_ = if(HASONEVALUE('Table'[subcategory]),min('Table'[wanted column]),"")
Ritaf1983_0-1698466462180.png

I attached PBIX with an example, you can download and follow my steps.

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.