Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Alteryx help with date range selection-by system date

jeetamar11
7 - Meteor

Hi, 

 

I am using this formula to choose all the days in the month Month to date.

DateTimeMonth([Case Created Date]) = DateTimeMonth(DateTimeNow()) AND DateTimeYear([Case Created Date]) = DateTimeYear(DateTimeNow())

 

But today(May 1st) when we are in new month but I still need to report data as per full April month. The querry is giving me no result as system date is new month. Can someone help me sp When we are on the forst of new month -it givers me data for whole last month.?

 

thank you in advance!

2 REPLIES 2
rzdodson
12 - Quasar
jeetamar11
7 - Meteor

This worked: DateTimeMonth([Case Created Date]) = DateTimeMonth(DateTimeNow())-1 AND DateTimeYear([Case Created Date]) = DateTimeYear(DateTimeNow())

 

Thank you!

Labels