Forum Discussion

EitanKGCS's avatar
EitanKGCS
Frequent Visitor
3 years ago
Solved

Measure not producing a column subtotal

Hi all,   I have a measure that pulls sales from the same period last year. I can't use SAMEPERIODLASTYEAR as the fact table is a non-standard date table (my fact table only has week-ending dates,...
  • amitchandak's avatar
    3 years ago

    EitanKGCS , Try new measure like

    Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
    Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

     

    That should give a year behind total