Forum Discussion
Elisa_E
Helper I
8 years agoLASTNONBLANK and MAX
Hello, I have a very large dataset with multiple entries per account per year. I need to pull a text variable (contractor) into a new table based on the last year in the dataset. The issue is tha...
- 8 years ago
May be a MEASURE like this
LastContractor = CALCULATE ( MAX ( Table1[Contractor] ), FILTER ( Table1, Table1[Year] = MAX ( Table1[Year] ) ) )
Zubair_Muhammad
Community Champion
8 years ago
May be a MEASURE like this
LastContractor =
CALCULATE (
MAX ( Table1[Contractor] ),
FILTER ( Table1, Table1[Year] = MAX ( Table1[Year] ) )
)Elisa_E
Helper I
8 years agoWorks perfectly. Thank you so much!