Forum Discussion
Need help swapping columns in Matrix Table
- 7 years ago
Hi gussiie,
Normally, matrix column header is not supported for sort by in power bi currently.
You could try this workaround below and have a reference of this blog.
1. Create a table with date and index
2. Create the relationship between the tables and create the calculated column year.
3. Sort calcualted column year by Index.
4. Create the matrix with calculated column year and Date hierarchy Quarter as column.
More details, you could refer to this attachment.
Best Regards,
Cherry
Hi gussiie,
Unfornately, I cannot open your shared URL, it seems to be a 404 page.
In addition, I'm a little confused about your requirement. Do you want to show the matrix with 2018 data first then show 2017 data?
If it is, you could create the date Slicer with Year column to filter the matrix data.
In addition, you also could use Bookmark feature to achieve your requirement.
If you still need help, please share some data sample and your desired output so that we could help further on it.
Best Regards,
Cherry
- gussiie7 years agoFrequent Visitor
Hi
Thanks for your response. I am not sure what you mean by slicer but I simply want to swap the below picture around so 2018 is first.
Can you please direct me on how to do this.
Thanks.
- v-piga-msft7 years agoResident Rockstar
Hi gussiie,
It seems that you want to get the output like below.
If it is, please click the more option and select Sort Descending, check if this could achieve your requirement.
Best Regards,
Cherry
- gussiie7 years agoFrequent Visitor
Hi
This does not work. It will only sort the rows or values. It does not sort the columns or give me an option to sort date by descending.
Are there any other ways?