Forum Discussion

jerryr125's avatar
jerryr125
Helper IV
1 year ago
Solved

Use the most recent values based upon a date

Hi - I am looking to create a measure to do the following:   1. Obtain the most recent values based upon the most recent date (if the Actual column is not null). 2. Upon obtaining the most recent ...
  • lbendlin's avatar
    lbendlin
    1 year ago
    Measure = 
    var a = TOPN(1,Filter(ALLSELECTED(Table1234),[Actual]<>BLANK(),[Date],DESC)
    return divide(sumx(a,[Actual]),sumx(a,[Target]))