Forum Discussion

adkayak86's avatar
adkayak86
Frequent Visitor
1 year ago
Solved

2nd to most recent date

Hi all,   I have two tables in my dataset:   HSCompanies: Contains 1 row for each company HSHealthScores: Contains multiple rows of health scores for each company   I'm trying to retrieve the ...
  • Ashish_Mathur's avatar
    Ashish_Mathur
    1 year ago

    You are welcome.  Revise the measure to

    PenultimateScore = CALCULATE(MAX(HSHealthScores[Score]),DATESBETWEEN('Calendar'[Date],[PenultimateScoreDate],[PenultimateScoreDate]))