- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Sort Month Year
Hello,
I am having trouble sorting the dates Below. I created an additional column based off our Ship date. The column I created is
Sort_YearMonth(Ship) = 'FBAP Event Detail Fact'[ship_dt].[Year] * 100 + 'FBAP Event Detail Fact'[ship_dt].[Month]
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi
Could I ask, have you attempted to sort by the visual and it has sorted them alphabetically.
If so, I would suggest using a data table, linking to the date in your table. You are able to create custom columns from this to display the date in your desired format I.e. 202010 or 2020 - April/ yyyy-mmm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
You should ideally create a Calendar Table with Year and Month extracted via these calculated column formulas
Year = year(calendar[date])
Month name = format(calendar[date],"mmmm")
Month number = month(calendar[date])
Sort the Month name column by the month number column. Ensure there is a relationship from the ship_dt column to the date column of the calendar table. To the x-axis of your visual, drag Year and Month from the Calendar table.
Hope this helps.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi
Could I ask, have you attempted to sort by the visual and it has sorted them alphabetically.
If so, I would suggest using a data table, linking to the date in your table. You are able to create custom columns from this to display the date in your desired format I.e. 202010 or 2020 - April/ yyyy-mmm

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-01-2024 08:00 PM | |||
09-25-2024 01:39 PM | |||
09-29-2024 10:28 PM | |||
01-06-2024 04:20 PM | |||
Anonymous
| 08-27-2018 08:14 AM |
User | Count |
---|---|
140 | |
110 | |
81 | |
60 | |
46 |