Forum Discussion
bo_afk
6 years agoPost Patron
Sorting two date columns
In my data I have two date columns, one is RaisedOrder date and the other is DeliveryDate. I've created a slicer (using the hierarchy slicer) for each of these columns by Year and Month name. Cur...
- 6 years ago
Hi V-lianl-msft , I solved it by bringing in the month number directly from the data source, along with the month name. I could then sort the month name by the month number and this looked to solve the issue.
Initially I'd created a month number column within Power BI, based off of the date, and then sort the month name by this column but this didn't work.
bo_afk
6 years agoPost Patron
Hi V-lianl-msft , thanks for your feedback. Initially I used this slicer but it was adding in extra years and months that didn't exist in my data so I was unable to use it.
V-lianl-msft
6 years agoCommunity Support
Hi bo_afk ,
You need to sort "DeliveryMonth" by "DeliveryDate"
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.