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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
AngelG
Regular Visitor

Hide text data in a matrix for row grouping

Currently I am using a Matrix to display numerical and text data. When I added the 2 columns with text data BI witll put text in row grouping (I have 5 rows with the final one being the detail). If there a way to hide the texts for row grouping (not including the detail)?This is what I now haveThis is what I now haveThis is what I wantThis is what I want

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

When you drag a text field into a matrix by default PowerBI will use a "First" aggregation which means that at the total and sub total levels it will generate those bold values based on the value from the first child.

 

You can get around this by creating your own measure where you can then override the way the column is aggregated.

 

If you create a measure like the following what this will do is to return the value for [Line Comment] at the detail level, but if there is more than one value for [Line Comment] (such as when you are at a total or subtotal level) then it will default to returning a blank. If you use this measure in your matrix it should give you the desired result

 

Current Line Comment = SELECTEDVALUE( <your table>[Line Comment] )

(you can then create similar measures for your other text columns)

View solution in original post

4 REPLIES 4
d_gosbell
Super User
Super User

When you drag a text field into a matrix by default PowerBI will use a "First" aggregation which means that at the total and sub total levels it will generate those bold values based on the value from the first child.

 

You can get around this by creating your own measure where you can then override the way the column is aggregated.

 

If you create a measure like the following what this will do is to return the value for [Line Comment] at the detail level, but if there is more than one value for [Line Comment] (such as when you are at a total or subtotal level) then it will default to returning a blank. If you use this measure in your matrix it should give you the desired result

 

Current Line Comment = SELECTEDVALUE( <your table>[Line Comment] )

(you can then create similar measures for your other text columns)

Works for me as well!

Thank you!

Thank you, it worked for me

Perfect.!! Thanks

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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