Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Find data within last 6 months

bh1789
8 - Asteroid

2022-08-01 is the date format in the data field "Month"

 

what formula could I use to pull data for last 6 month only?

 

Thank you

2 REPLIES 2
MilindG
12 - Quasar

@bh1789 See if this works

[Date] >= DateTimeFormat(DateTimeAdd(DateTimeToday(),-180,'days'),'%Y%U')

Christina_H
14 - Magnetar

You can also use month in DateTimeAdd to subtract six months.  This goes back 6 months from the first of the current month

[Month]>=DateTimeAdd(DateTimeFirstOfMonth(),-6,"month")

Labels
Top Solution Authors