Forum Discussion

rpinxt's avatar
rpinxt
Icon for Solution Sage rankSolution Sage
3 years ago
Solved

Placeholder issue Calculate formula

I have a measure in which I would to find the quantity for the latest week. Wanted to do it like this but placeholder error:   My MaxWeek : MaxWeek = WEEKNUM(MAX('Backorder Details'[Doc. E...
  • johnt75's avatar
    3 years ago

    Try

    BO Current =
    VAR MaxWeek = [Max week]
    RETURN
        CALCULATE ( [BO Tot Qty], 'Dim date'[Week nr (ISO)] = MaxWeek )
    

    If your data spans multiple years you may also want to filter on the year.