Forum Discussion
Sorting date in column in table visual
- 1 year ago
MinCK
Power BI doesn't allow you to sort the column in a matrix viz, following work around should work for you.
I added a new column in Power Query to rank the date column in descending order witch later will be used to sort the date column when loaded to Power BI using sort by column.
New rank column in Powr Query:= Table.AddRankColumn(#"Renamed Columns", "DateOrder" , { "Date", Order.Descending })
Apply Sort by column:
You get the dates sorted in decending order:Note: whereever you use this date column, the order will be decesnding. You may duplicate the date column and use only for this viz if no other modeling concerns arise.
Click the ellipsis in the upper right corner of your Matrix visual. There you should be able to sort Descending or Ascending, yes?
Hi ToddChitt, thank you for your reply. I am trying to find that too but it doesn't show on my end. The matrix allows me to sort by any row, but not the column itself. I don't mind sorting by any row, what I want is to just sort the date column from to show the latest first not the oldest.