Forum Discussion
PowerBiNoob
9 years agoFrequent Visitor
Chart sort order per month
Hi, I am busy with a couple of charts , the info need to be displayed needs to be per month , but a different kind of sort order is needed. currently there is (Jan,Feb,Mar..) or (Mar,Feb,Jan) , I...
- 9 years ago
Try adding this column to your Date table and use the Sort By Column on your real month column to use this one.
Month Sort Col = 0 - INT(FORMAT('Dates'[Date],"YYYYMM"))
v-sihou-msft
Microsoft Employee
9 years ago
In this scenario, if you want to sort the months based on current month (current month on top). You could add a month sort column like below:
month sort = IF(MONTH('Table'[Date])-MONTH(NOW())<=0,MONTH(NOW())-MONTH('Table'[Date])+1,MONTH(NOW())-MONTH('Table'[Date])+13)
Then you can just sort the months based on above column.
Regards,