this is my data:
I need a sum of latest cumulative values (column/not measure) depending on project filter context. Eg. if I use slicer for x,y I need 13 as in rightmost column:
Thanks
this is my data:
I need a sum of latest cumulative values (column/not measure) depending on project filter context. Eg. if I use slicer for x,y I need 13 as in rightmost column:
Thanks
VAR projectLastDates=
ADDCOLUMNS(
Values(tbl[proj])
,"lastDate",CALCULATE(LASTDATE(tbl[date]))
)
VAR lastValues=
ADDCOLUMNS(
projectLastDates
,"lastValue", VAR lastProjDate=[lastDate]
RETURN
CALCULATE(
SUM(tbl[cum])
,tbl[date]=lastProjDate
)
)
RETURN SUMX(lastValues,[lastValue])