Forum Discussion
Hide text data in a matrix for row grouping
- 6 years ago
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)
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)
Thank you, it worked for me