cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors