Hello wonderful Alteryx Community,
I built a macro that dynamically summarizes certain fields and will sum up the metrics for whichever dimensions we choose, but I want to add in a step that will automatically recalculate all the formulas at the new level of granularity (basically like a calculated field in a pivot table in Excel). I have the formulas in the tool before inputting into the macro, and as you see within the macro, I’ve used a sequence of Field Info, Formula an Summarize tool to write the formulas as if they were XML code. I’m looking to insert a tool before the Macro Output that will dynamically re-add in all of these formulas (and of course, in a way that will automatically update if I choose to add in more or less formulas in the parent workflow) so that our summarized Output data will automatically have these formulas calculated.
The constraints are that this has to either be done within the macro (or within another macro within that macro, but I’d prefer to it all be within a single macro).
I’ve attached a workflow of completely nonsensical dimensions, metrics and formulas, but the logic is all there.
Thanks so much.