Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

How to loop through all the columns in the data.

Madhusmita_123
5 - Atom

Hi Team,

 

I am very new to Alteryx. I am currently working on a macro that needs to loop through each column until it reaches the end.

 

Can you please help me with the functionality or process we usually follow for this? Any document or video would be helpful.

 

Thanks

Madhu 

 

 

2 REPLIES 2
DataNath
17 - Castor

Would definitely recommend having a read through the knowledge base on this! If you run into any specific issues then make sure to post back here!

 

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Getting-Started-with-Iterative-Macr...

 

The following video is also great as an intro:

 

https://www.youtube.com/watch?v=AByfTPqrUrQ&t=103s

IraWatt
17 - Castor
17 - Castor

Hey @Madhusmita_123,

What is your use case, do you have an example+data of what you want to achieve? A multi field formula maybe all you need.

There's a few approaches you could take for looping through columns, one could be transpose the data then filter the column name in a batch macro:

IraWatt_0-1652275193396.png

The community has some great videos on macros here: Interactive Lessons - Alteryx Community

HTH,

Ira

 

Labels