Forum Discussion
Niki
7 years agoHelper III
matrix column header sort DESC!!
Hi all, Going crazy! So hope any one can help. I have a column with dates which are the matrix column series. I want the most recent date to show up first, but it seems microsoft is recognizing ...
- 7 years ago
What is your data source? If it is SQL, then you could add a Rank column while importing the data to tabular model:
Rank() over(order by settlementdate DESC) AS DateSort
Afterwards, you could sort Date column by this DateSort column.
mussaenda
7 years agoCommunity Champion
I haven't tried to sort the column header but maybe you can sort you table desc then add an index column in power query then sort you date column by index
Niki
7 years agoHelper III
Hi,
That does not work because it will give an error on circular dependency (first creating an index column based on column A and then try to sort column A by that index column..).
Also sorting from tabular is not kept in the power BI report, it recognizes the date format and puts it ASC, no matter how I formatted the original table in the model.