Forum Discussion
Tommy123
1 year agoFrequent Visitor
Creating Matrix with a measure as row values with different years
So I have a mtrix I am creating bellow and this is fine and exactly how I want it where I have the Department and the current ear selected in my calanader slicer and the previous year. My ca...
- 1 year agoThisYearSales =VAR _thisyr = CONVERT(SELECTEDVALUE(PRC_00034_TEST[YEARNUM]),INTEGER)VAR lastyr = CONVERT(SELECTEDVALUE(PRC_00034_TEST[YEARNUM]),INTEGER)-1RETURNIF(min(PRC_00034_RETENTIONBASE6[YEARNUM]) = (_thisyr)||min(PRC_00034_RETENTIONBASE6[YEARNUM]) = (lastyr),MIN(PRC_00034_RETENTIONBASE6[ACTFACTOR_SMRR]))
Deku
Super User
1 year agoNeed to see the definition of the measure
Tommy123
1 year agoFrequent Visitor
ThisYearSales =
VAR _thisyr = CONVERT(SELECTEDVALUE(PRC_00034_TEST[YEARNUM]),INTEGER)
VAR lastyr = CONVERT(SELECTEDVALUE(PRC_00034_TEST[YEARNUM]),INTEGER)-1
RETURN
IF(
min(PRC_00034_RETENTIONBASE6[YEARNUM]) = (_thisyr)||
min(PRC_00034_RETENTIONBASE6[YEARNUM]) = (lastyr)
,MIN(PRC_00034_RETENTIONBASE6[ACTFACTOR_SMRR])
)