HI,
I have created a formula in my Power Query & Data Model (With Calendar), to compare the sales for 2020 (till end of June) and the same result for 2019/2018 (end of june).
Formula is "CALCULATE'('DATA[Total Invoice];SAMEPERIODLASTYEAR('Calender[Date])
Result is correct when I am looking in details, on 30/06/2019 I have the correct amount but the final result in the Measure*is the Total of 31/12/2019 and not at the same period for 2020 > 30/06/2020.
How can I have the total for the same period > end of invoicing of 2020, now is 30/06 but next month it will be 31/07...
I don't want to use the filter by a slicer, I would like like to have the formula independant of the slicer.
Thanks for your help.
Nice Weekend.
Eric
Bookmarks