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] ) ) )
Ashish_Mathur
Super User
8 years agoHi,
Share the link from where i can download your Excel file.
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_E8 years ago
Helper I
Works perfectly. Thank you so much!