Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
Former Employee
Former Employee

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