In a PowerPivot calculated column, is it possible to dynamically refer to another column? For instance, I have a table with 10 columns for hierarchy levels. I want to write a formula that lets me dynamically refer to one of these columns, sort of like using INDIRECT in Excel. Is this possible? I tried something like,
But that doesn't work. Just wondering if this is possible at all or if I give up.
Code:
SWITCH( value,
1, Values([Column1]),
2, ([Column2]),
3, ([Column3]),
etc.
But that doesn't work. Just wondering if this is possible at all or if I give up.