Forum Discussion
Sorting two date columns
- 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.
Hi bo_afk ,
There is a visual called "hierarchy slicer" in marketplace. Using this visual and applying the date hierarchy provided by powerbi can meet your needs.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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-msft6 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. - V-lianl-msft6 years agoCommunity Support
Hi bo_afk ,
Is this problem sloved?
If not, please let me know.Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- bo_afk6 years agoPost Patron
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.