Forum Discussion
MATRIX
- 6 years ago
Anonymous - Try unpivoting your last 4 columns in Power Query Editor and this this should be very easy.
- Anonymous6 years ago
Hi Anonymous
Just like Greg_Deckler and mahoneypat ās reply said Unpivot in Power Query Editor is a good way to achieve your goal.
The way to rename the column header is easy, you can right click the column headers in Power Query Editor or in Fields and choose Rename.
And you may try my way.
I build a table like yours to have a test.
Use raw data to build a matrix.
Then you select Show on rows in Values.
Result:
The result by this way may donāt have column headers, but you can use the original data model to achieve your goal.
And you can build a text box and use group by right-click after selecting both two visuals.
You can download the pbix file from this link: MATRIX
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Rico Zhou
Anonymous , Unpivot in Power Query
https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/
Or in Display use Measure on Row
https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/