Hi Alteryx Community
Wondering if someone can help me translate the below into the multi row formula tool?
Scenario:
Meeting morning funding requirements in accounts that have multiple people owning assets.
Formula in pseudo code:
If the cusip value meets the amount needed then use up all of that cusip and then move onto the next fund.
If the cusip value does not meet the amount needed then use up as much of that cusip as possible and then move onto another person that might have enough to cover.
Below is an example of the data. Columns 1-4 are already available and formatted using my current workflow. Columns 5-8 are pre formatted based on what I want the outcome to be.
| Sleeve | Fund | Cusip | Cusip Value | Amount Needed | Result | Left Over |
| Person A | Fund 1 | Cusip 1 | 100,000.00 | 50,000.00 | 50,000.00 | - |
| Person B | Fund 1 | Cusip 2 | 95,000.00 | | | |
| Person C | Fund 1 | Cusip 3 | 85,000.00 | | | |
| Person D | Fund 1 | Cusip 4 | 75,000.00 | | | |
| Person A | Fund 2 | Cusip 1 | 100,000.00 | 300,000.00 | 100,000.00 | 200,000.00 |
| Person B | Fund 2 | Cusip 2 | 100,000.00 | 200,000.00 | 100,000.00 | 100,000.00 |
| Person C | Fund 2 | Cusip 3 | 100,000.00 | 100,000.00 | 100,000.00 | - |
| Person D | Fund 2 | Cusip 4 | 100,000.00 | | | |
Thank you for your time