SOLVED
Month-Year format 'MM-YYYY' as a Date field?
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
aMac
8 - Asteroid
‎11-22-2016
11:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Attempted output: Month-2016 as a Date value
I understand this is possible with the DateTimeFormat() function and '%B, %Y' formatting, but is there any way to write this as a Date field type?
I am trying to summarize and sort by this Date value, and when I try sorting as a String, the values sort alphabetically, as opposed to the chronological sorting I need them to. Googling Alteryx's community doesn't provide any related solutions or suggestions-- any ideas?
Thanks!
Solved! Go to Solution.
1 REPLY 1
Joe_Mako
12 - Quasar
‎11-22-2016
11:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Instead of formatting prior to summarizing and sorting, you could use
DateTimeTrim([Date],'month')
prior to the summarizing and sorting, and then format the field later, after the summarizing and sorting.
