Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Date filter batch macro

NickKierstead
6 - Meteoroid

I am trying to build a batch macro that updates a date filter that would trim a data set using a start and end date of. date field. The idea is to use the macro to batch process monthly statistics from a pool of historical data. I am not clear on how the table/input of batch start and end dates should be applied to the filter through an action. I have read all the literature and get the concept, but feel I am missing a few small critical details for this use case. Thanks, in advance, for any pointers.

3 REPLIES 3
Felipe_Ribeir0
16 - Nebula

Hi @NickKierstead 

 

Please see if the attached workflow is clear.

 

1) I made a dummy input with sales per date.

 

Felipe_Ribeir0_0-1664233968730.png

 

2)I wanna analyze the average sales per month using a batch macro (it is just an example, this could be done much more easily). So i created a calendar of dates to consider as a month, these start and end dates will be the parameters that gonna filter each iteration of my batch macro.

 

Felipe_Ribeir0_1-1664234086276.png

Felipe_Ribeir0_2-1664234122853.png

 

3)Inside my batch macro, i have a filter and i am going to update the filter parameters each iteration with the 2 dates of the previous step.

 

Felipe_Ribeir0_4-1664234212224.png

 

Felipe_Ribeir0_3-1664234186347.png

 

If the provided answer helped you to solve the problem/was correct, please accept it as a solution :)

 

Thanks.

 

 

NickKierstead
6 - Meteoroid

Thanks for the great example, it is very close to what I had, but I had the update string malformed and I forgot you could add two actions to one batch process. It's always the little stuff, thank you for the correction. I will try and apply it now.

Felipe_Ribeir0
16 - Nebula

Hi @NickKierstead 

 

It worked?

Labels
Top Solution Authors