Forum Discussion

nothingman's avatar
nothingman
Regular Visitor
8 years ago
Solved

Calculate last year based on current year filter

Hi, Let's say i have a table called Orders with number of units sold by resellers in Country by date Country ResellerID   Date         Units 3                          1   May-17    7 3          ...
  • nothingman's avatar
    8 years ago

    It looks like this one does the trick

    = CALCULATE(SUM(Orders[Units]), SAMEPERIODLASTYEAR(Orders[Date]), Orders[ResellerID] IN VALUES(Orders[ResellerID]))