Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

How to make macro that can read in columns of same data type but different column header

BillyL14
8 - Asteroid

Hi there

Please see my attached macro. It is set up so that I can feed in different amounts and multiply by a VAT rate to find the VAT payable.

However sometimes the input may have different amounts of rows and the column header may be slightly different from time to time. Therefore, I was wondering if it was possible to configure a macro to be able to receive different amounts of rows and different headers? I'm not very experienced with macros so don't know how to do it.

 

Thanks a lot

 

3 REPLIES 3
markcurry
12 - Quasar

Hi @BillyL14 if you have different inputs, tick the 'Show Field Map' which will let you choose which is the field will then be used as your 'Tax base amount'.   Also, make sure your select tools in your workflow have *Unknown ticked, so they will include any additional fields being passed into your macro.....

 

Macro.png

 

Hope that helps.

markcurry
12 - Quasar

Also in your workflow, your Multi-Field is set to add a € prefix, but in this case you want to untick 'Dynamic or Unknown Fields' otherwise additional fields passed into your macro will get this prefix.  See updated macro....

BillyL14
8 - Asteroid

@markcurry thank you, that worked very nicely

Labels