cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AngelG Frequent Visitor
Frequent 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)?BI_1.jpgThis is what I now haveBI_2.jpgThis is what I want

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Hide text data in a matrix for row grouping

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

2 REPLIES 2
Super User
Super User

Re: Hide text data in a matrix for row grouping

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

AngelG Frequent Visitor
Frequent Visitor

Re: Hide text data in a matrix for row grouping

Perfect.!! Thanks

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)