I've searched high and low and haven't found a solution for this hopefully I can explain this.
I have a data set that looks something like this. The Group By column actually gets set earlier in my workflow and it can say either Department, Market or Region. and it will have it for either of the three for all rows.
| Emp ID | Department | Market | Region | Group By |
| 1 | HR | East | Global | Department |
| 2 | IT | East | Global | Department |
| 3 | HR | Central | Global | Department |
| 4 | Legal | Central | Global | Department |
| 5 | Ops | West | US | Department |
| 6 | Ops | Central | US | Department |
In this case I want Group By to give me the actual values so that instead of the string "Department" it gives me the actual department for each Employee.
| Emp ID | Department | Market | Region | Group By |
| 1 | HR | East | Global | HR |
| 2 | IT | East | Global | IT |
| 3 | HR | Central | Global | HR |
| 4 | Legal | Central | Global | Legal |
| 5 | Ops | West | US | Ops |
| 6 | Ops | Central | US | Ops |
This is a smaller piece of a bigger workflow but hopefully that makes sense. Thanks for the help in advance.