Forum Discussion
ricardo_cvo
Helper I
8 years agoDAX SALES OF THE LAST X MONTHS
I need to get the sales of the last 60 days using dax, could anyone help me? I have tested several ways but without success. Thank you
- 8 years ago
Hi,
you can try below:
last 60 days sales =Calculate(sum(Sales[amoujnt]),Sales[date]<=Today()-60)
Or
last 60 days sales =Calculate(sum(Sales[amoujnt]),Sales[date]<=Max(sales[date])-60)
v-huizhn-msft
Microsoft Employee
8 years agoHi ricardo_cvo.
There is a similar thread for reference, please review: https://community.powerbi.com/t5/Desktop/Rolling-7-Dates-based-on-selected-date-in-dropdown/m-p/134406#M57518.
Best Regards,
Angelia