Reputation: 253
I have the following table:
I need to SUM
the values of more recent dates, which are the more recent?
The MEASURE
needs return the following value: 27
Why 27?
Because it's the SUM of more recent values from which idOp
.
Upvotes: 2
Views: 1724
Reputation: 1781
This should work:
Latest Date Sum = SUMX(VALUES(Data[idOp])
, CALCULATE(SUM(Data[value])
, LASTNONBLANK(Data[Date]
, CALCULATE(SUM(Data[value]))
)
)
)
Upvotes: 1