I'm sure the subject line is super confusing, but I wasn't sure how to word this. I have an output that looks like this:
State | Emp No | Job | Income |
TX | 1234567 | Trainer | 1000 |
OK | 1234569 | Driver | 800 |
KS | 1234534 | Sales | 1200 |
I want to take this output with the exact same dimensions (State, Emp No) and map it to a new row where the Job is "UNASSIGNED" and the value sign is reversed so that the total is offset to $0. The output would look like this below:
State | Emp No | Job | Income |
TX | 1234567 | Trainer | 1000 |
TX | 1234567 | UNASSIGNED | -1000 |
OK | 1234569 | Driver | 800 |
OK | 1234569 | UNASSIGNED | -800 |
KS | 1234534 | Sales | 1200 |
KS | 1234534 | UNASSIGNED | -1200 |
Any idea how to accomplish this? I'm stuck...
Thanks!
Solved! Go to Solution.
You could do something like this...
You basically take your data, use the Formula tool hardcode the one field to UNASSIGNED and reverse the sign. Then Union it back to the original data. If you want to have the records next to each other, then just Sort on the key fields.
If there are only certain records you want changed, then just add a Filter tool with those conditions before the Formula tool.
Works like magic!