Filter the last day of the month
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
louyang
7 - Meteor
‎12-26-2024
05:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I have a number of data containing random dates from one month, extracting from a monthly report. I wanted to use a filter tool to always select the last day of the month. I was using the formula:
DateTimeAdd(DateTimeTrim([Posting Date], "month", "end"), 0, "days")
But this didn't work in Alteryx, seems the formula missesd something.
I'm now using a 'Sort' tool, to sort the last day to the top, then a 'Select Records' tool to select the top one, but this process doesn't feel as secure as a formula does, please help, thank you.
Labels:
- Labels:
- Date Time
- Error Message
- Expression
2 REPLIES 2
flying008
15 - Aurora
‎12-26-2024
07:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
nagakavyasri
12 - Quasar
‎12-27-2024
02:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@louyang Another way:
