Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Filter the last day of the month

louyang
7 - Meteor

Posting date.jpg

 

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.

2 REPLIES 2
flying008
15 - Aurora

Hi,@louyang 

 

FYI.

 

[Date] = TODATE(DateTimeTrim([Date],'lastofmonth'))

 

录制_2024_12_27_11_04_01_767.gif

nagakavyasri
12 - Quasar

@louyang Another way:

Screenshot 2024-12-27 170516.png

Labels
Top Solution Authors