Skip to main content
Announcements
Jan 15, Trends 2025! Get expert guidance to thrive post-AI with After AI: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
abc_18
Creator II
Creator II

How to calculate previous date

Hi,

I have below expression for the current date column which is working fine, have to calculate previous date for another column.

=sum(if(DT.Date = aggr(nodistinct max(DT.Date),measure),qty))

I tried using below expression for previous date but it's not working , can someone help me with the correct way?

=sum(if(DT.Date = aggr(nodistinct date(max(DT.Date)-1,'MM/DD/YYYY'),measure),qty))

Labels (1)
1 Reply
Andrew_Delaney
Support
Support

What do you get when you use your current formula for previous date?