Hello,
I am currently trying to write a macro that automatically calculates totals for the positions from a list of balances. First the sub-totals have to be formed, then the totals below. This is what the column Level is for.
I am quite new in macro programming with Alteryx. How can I tell a macro to run from 1 to 10 and filter in each iteration the current level and form the sum?
I assume the macro will take a parameter "number of iterations".
Thanks for your hints!
Best regards,
Thomas
| Acc # | Acc Name | Level | Amount | SumPosition |
| 123 | A | 1 | 10.00 | 345 |
| 234 | B | 1 | 20.00 | 345 |
| 345 | C | 2 | [calculated in macro iteration 1] 30.00 | 567 |
| 456 | D | 2 | 30.00 | 567 |
| 567 | E | | [calculated in macro iteration 2] 60.00 | |