Forum Discussion
Casteless
Helper I
9 years agoTrying to calculate most recent classification
Suppose there are three columns: CLIENT | Classification | Date 1 | A | 1/1/2016 1 | A | 1/1/2016 1 | B | 2/...
Vvelarde
Community Champion
9 years ago
try with this:
LastClassification = CALCULATE(VALUES(Table2[Classification]),LASTDATE(Table2[Date]))
Casteless
Helper I
9 years agoThat will return a multiple values error (even if i add distinct).
- Vvelarde9 years ago
Community Champion
Can you have different classification in same day for a client?
Using your sample Data i have this result
- Casteless9 years ago
Helper I
Well this is odd, are you sure you copied in the duplicate dates?
I am also using the sample data and I recieve the multiple values error.
the measure:
class2 = CALCULATE(VALUES(Testtable[class]),LASTDATE(Testtable[date]))
the data: Testtable
- Casteless9 years ago
Helper I
Ah the problem was in the "totals" option again, why must that be turned to off for this to work?