Hello,
I have a data set consisting of quarterly data. Within each quarter, the ordering of the rows is important. Hence, I used a tile tool to determine the ordering of the rows for each quarter. Now I have to add data for various quarters and the new data rows have to be below the existing data rows in each quarter.
I'm currently thinking about the following solution:
My question is: Is there a simpler approach to basically just start "continue Record ID based on latest value for each tile"?
Thanks and best regards
Solved! Go to Solution.
For this problem, you can connect Formula tool with Tile tool. Then, create a formula by update your ID column using this formula
[field1]+2
change value of 2 to the latest ID value, so your ID will be updated based on the latest value for each tile.
Hope this helps!
You should be able to accomplish this with the Multi-Row Formula tool:
I'm assuming from your post that you already have an ID field that is incrementing within each quarter - if not, you could get fancy using a Summarize tool to find the highest ID for a given quarter. The key thing here is that in the Union tool make sure to "Set a Specific Output Order" and put the new data below the old data. Then in the Multi-Row Formula tool, select to group by your Quarter field and add an expression that is adding 1 to the previous row's ID field. As long as your order is correct before starting (which your union tool takes care of), I think this should produce the results you need.
Multi-Row Formula works, thanks a lot.