Forum Discussion
Yesterdays Sales
- 5 years ago
Anonymous , Try a measure like
yesterday=CALCULATE(sum('order'[Qty]),'Date'[Date]= today()-1)
This will work if you do not have date filter. If you have some date filter
yesterday=CALCULATE(sum('order'[Qty]),filter(all('Date'),'Date'[Date]= today()-1))
Anonymous , Try a measure like
yesterday=CALCULATE(sum('order'[Qty]),'Date'[Date]= today()-1)
This will work if you do not have date filter. If you have some date filter
yesterday=CALCULATE(sum('order'[Qty]),filter(all('Date'),'Date'[Date]= today()-1))
Hey amitchandak, this helped me a lot too.
I used the same formula to automatically pull yesterday's sales revenues. However, I also want to pull sales revenues from yesterday last year.
Is there an edit I can make to the formula to pull that date?
Thanks!