We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to loop and increment a value in filter tool by 1 and write all the results to a file.

akshaydalvi5217
5 - Atom

Hi,

I am quite new to Alteryx and especially the Macros. My requirement is fairly simple. I want to increment a value by +1 in the filter tool by keeping the operator as "<" . I want to loop through all the Record_ids to get the final multiplied "Multiplied_score" for all the 15 record_ids.

 

I have attached the sample workflow.

 

I am not sure, if Batch macro or iterative macro is the right way to go for this simple use case. Please guide me. All i need is the value in the formula tool to be incremented by 1 and stop at the last record_id.

 

I specifically want to use Macros, I know the formula tool can achieve this. I want to know how this can be done.

 

Thank you!

2 REPLIES 2
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

Hi @akshaydalvi5217 ,

 

I am not sure if this is what you want.

I followed your words to "increment a value by +1 in the filter tool and loop all the record_ids".

Please let me know if anything is wrong.

 

Workflow

Yoshiro_Fujimori_0-1682138306743.png

 

Macro

Yoshiro_Fujimori_1-1682138321546.png

 

Output

Yoshiro_Fujimori_2-1682138390444.png

 

akshaydalvi5217
5 - Atom

Thank you so much Yoshiro!

Labels
Top Solution Authors