Forum Discussion
Anonymous
4 years agoNot applicable
Dynamic Measure Header Naming in Matrix
I have several measures that have corresponding current year, last year, and two years ago measure counterparts. Example: Sales, Sales CY, Sales LY, Sales LY-1 I have these in a matrix, but I th...
- Anonymous4 years ago
Anonymous create a table as below.
Use the measure as
Metrix Measures = SWITCH(TRUE(), SELECTEDVALUE(Metrix[Year]) = MAX(Metrix[Year]) && MAX(Metrix[Type]) = "CY",100, -- CY Value SELECTEDVALUE(Metrix[Year]) = MAX(Metrix[Year]) && MAX(Metrix[Type]) = "PY",200, -- PY Value SELECTEDVALUE(Metrix[Year]) = MAX(Metrix[Year]) && MAX(Metrix[Type]) = "PY-1",300 -- PY-1 Value )Let me know if that helps.
Anonymous
4 years agoNot applicable
Accept the solution if that works for you.