I have a query where there are 6 columns of values, representing a hierarchical path (such as Cost > Direct Cost > Labor > Meetings ... etc.). The values in the columns, however, are codes, not the descriptions as I've mentioned above.
A separate table contains the key to codes, something like
A1: Cost
A2: Direct Cost
A3: Labor
etc.
I'd like to get all of those descriptors into my query table, but I can only figure out how to do this by merging the two tables 6 times to get the description individually of each column.
Is there a better way to lookup multiple values at once?
I don't want to unpivot those columns, because I want to use the columns to create a hierarchy in a pivot table.
A separate table contains the key to codes, something like
A1: Cost
A2: Direct Cost
A3: Labor
etc.
I'd like to get all of those descriptors into my query table, but I can only figure out how to do this by merging the two tables 6 times to get the description individually of each column.
Is there a better way to lookup multiple values at once?
I don't want to unpivot those columns, because I want to use the columns to create a hierarchy in a pivot table.