I have a dataset that I need to assign date estimates to. Each record is a location (with a unique ID) that has a region and decimal number assigned to it.
I need to assign dates starting with 1/1/2025 and increasing by one month each time the running total for a given month hits 0.37. To make it more tricky, there are two different regions that need to each add up to half (0.185) of each month until one of them runs out, then contribute the full 0.37. If the numbers go over 0.37, that is preferable to cutting off a month prior to hitting 0.37.
Each region has a sub-region that has a priority level for assigning to earlier dates, but I believe that can just be figured out with sorting prior to assigning these bins.
Example data:
| Region | Decimal | Month |
| A | 0.1 | 1/1/2025 |
| A | 0.085 | 1/1/2025 |
| A | 0.2 | 2/1/2025 |
| A | 0.17 | 3/1/2025 |
| B | 0.18 | 1/1/2025 |
| B | 0.01 | 1/1/2025 |
| B | 0.185 | 2/1/2025 |
| A | 0.02 | 3/1/2025 |
| B | 0.19 | 3/1/2025 |
I'm relatively new to Alteryx so I'm not sure how to go about this. I tried to use the Tile tool to separate them into Equal Sum bins and get the bin number through taking the decimal column and dividing it by 0.37. Unfortunately that doesn't do much when it comes to getting the regions to split evenly. Help?