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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MarkEvansHW
Helper II
Helper II

Flip Column Hierarchy in Matrix Visualization

I'm hoping to use the Matrix visualization for a reporting request, but I now think it won't work for what I need. I'm wondering if it is possible to "flip" the column hierarchy so that that like measures are grouped together within the broader column categories.

 

I have a source dataset that looks like this:

 

Age RangeDateTransactionsUnitsDollars
20-292020-08-014348$1,245
30-392020-08-011,2391,511$3,677
40-492020-08-01158180$450
etcetcetcetcetc

 

The default matrix gives me this:

Age Range  20-29  30-39  40-49
DateTransactionsUnitsDollarsTransactionsUnitsDollarsTransactionsUnitsDollars
2020-08-014348$1,2451,2391,511$3,677158180$50

 

What I need is this:

   Transactions  Units  Dollars
Age Range20-2930-3940-4920-2930-3940-4920-2930-3940-49
2020-08-01431,239158481,511180$1,245$3,677$50

 

Thought I'd see if I'm missing anything. I'm using Direct Query, so I can envision a way to do this but would involve a lot of new measures and probably individual query calls to my source data. Hoping someone has a solution. Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MarkEvansHW , If you want column below measure that is not possible.

If you need measure on the row - You can show on the row

https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@MarkEvansHW , If you want column below measure that is not possible.

If you need measure on the row - You can show on the row

https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

AllisonKennedy
Super User
Super User

Try if this is what you want:

https://powerbi.microsoft.com/en-us/blog/tag/show-values-on-rows/

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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