Alteryx Designer Desktop Discussions

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

How to filter month to date data

SJDC
Météoroïde

Hello Team, Can someone help me on how can I filter month to date data in the below sample input file:

 

SJDC_0-1629858137667.png

 

Thank you.

8 RÉPONSES 8
ncrlelia
Bolide

Hi @SJDC,

 

There are a few ways to do this depending on your needs.

Essentially, the idea is to parse your date into a format that Alteryx recognises as a date. Then use DateTimeFormat to get the Month value, and subsequently filter the month value

I've included 2 variations of month value, that is the Abbreviated Month name and Month number. If you are filtering by a range then the month number will be better. You can refer to https://help.alteryx.com/20213/designer/datetime-functions for specifiers for other formats of month value.

 

Please see attached my suggested solution.

Hope it helps.

 

Thank you.

 

Best Regards,

Lelia

binay2448
Bolide

Hope this can help ....

SJDC
Météoroïde

Appreciate your help! this works! 🙂

atcodedog05
22 - Nova
22 - Nova

Hi @SJDC 

 

If the solution author's response helps please don't forget to mark it as a solution.

Cheers and have a nice day!

SJDC
Météoroïde

Actually I just new that it captures previous year

 

SJDC_0-1629982083568.png

can you help as well with the current year?

atcodedog05
22 - Nova
22 - Nova

Hi @SJDC 

 

Here is the formula for it

if [DateTime_Out]>=DateTimeFirstOfMonth()
then 1 else 0 endif

 

Workflow:

atcodedog05_0-1629982693403.png

 

Hope this helps : )

SJDC
Météoroïde

Thank you all for your help! 🙂

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @SJDC 

Cheers and have a nice day!

Sondage
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Étiquettes