This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hello,
I am trying to create my first Batch Macro and I'm striking out.
I want to generate a Field Summary for each unique value in a specified column.
I then want to write that Field Summary output to a .XLSX on my desktop.
How can I do that?
I've attached a sample workflow. I want to generate a Field Summary for each VENDOR_ID.
Would it work if I filtered on each VENDOR_ID in the Batch Macro?
Solved! Go to Solution.
Hi @dmccandless
A couple of pointers that will hopefully help:
Hope that's useful.
I've put something together that should achieve what you're looking for. I used a Field Info tool on the input data so each field name can be batched on (Control Parameter). Inside the batch macro, I used a Dynamic Select to only grab the field I'm interested in (redundant, but I like to be safe), then I use the Control Parameter again to update the selection in the Data Investigation tool.
The Macro will batch through every field and output each field summary on a different sheet of the Excel file. Check it out and let me know if it works for you.
Jamie,
Thanks for the prompt help and 'going the extra mile for me.'
I took your solution and added it onto it a bit, just to output each vendor's field summary to a new tab in the same Excel file.
Charlie,
Thanks a ton. I wasn't going for a field summary for each field, but this is really powerful to have! Thanks