Forum Discussion
Previous Day Value
I am facing and issue in fetching previous day amount using current day amount. Can anyone let me know the exact DAX formula for the same.
- Anonymous7 years ago
ajayemmadi1 ,
Do you have a calendar table? You can use the DAX below. If you still have questions, please share sample data of your table and post expected result here.Previous day amount= CALCULATE(SUM(Yourtable[Amount]), PREVIOUSDAY('DateTime'[DateKey]))
Reference:
https://docs.microsoft.com/en-us/dax/previousday-function-daxRegards,
Lydia
4 Replies
- AnonymousNot applicable
Hi I just want to display last day sale of month.
If last day sale is Zero then it should take previous day sale.
If that also zero then again it should take previous day sale.
Like that it should be dynamic.
Can you pleae write a DAX and send to me.
- AnonymousNot applicable
ajayemmadi1 ,
Do you have a calendar table? You can use the DAX below. If you still have questions, please share sample data of your table and post expected result here.Previous day amount= CALCULATE(SUM(Yourtable[Amount]), PREVIOUSDAY('DateTime'[DateKey]))
Reference:
https://docs.microsoft.com/en-us/dax/previousday-function-daxRegards,
Lydia