Please can you help me on below issue. I have created a table like below in power bi.
By default current month selection is applied and calculated CY and PY measures like below
CY= CALCULATE( Sum(SalesNetAmountGBP]),Date'[CurrentDayOffset]<=0)
PY = CALCULATE([CY], SAMEPERIODLASTYEAR('Date'[Date]))
Issue: When i have selected 2022 full year PY measure is showing data upto 2021 december 31st instead of 2021 december 5th (today). Please can you help to write DAX for PY measure to show last year today date data dynamically .
Thanks in advance