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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
yogitamehta10
Creator
Creator

To calculate max date-1

HI All,

i have date in my data as date dd/mm/yyyy

i need to calculate sale where date is maximum date of  this date -1, in short i want the yeterday's day.

Thanks in advance

Labels (1)
2 Replies
sunny_talwar

May be this:

Sum({<Date = {"$(=Date(Max(Date)-1, 'DD/MM/YYYY'))"}>} Sales)

Update: Missed -1 above

sunny_talwar

or for yesterday, you can use Today()

Sum({<Date = {"$(=Date(Today() - 1, 'DD/MM/YYYY'))"}>} Sales)