Calculate the sum of my sales from last week in Power BI (DAX).
Example: From Filter, If I have select a date that belongs to the 5th week of March then the result must be the sum of the sales of the 4th week of March.
I have tried this code but it doesn't return the desired result:
'THSalesp W-1 = CALCULATE(SUM(FACT_Production[THSales]); WEEKNUM(DIM_Time[CalDate])-(1))'