Forum Discussion

MarkEvansHW's avatar
MarkEvansHW
Icon for Helper II rankHelper II
6 years ago
Solved

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!