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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

date today -1

What would be the statement to only grab on a refresh today and only grab dispense dates of yesterday?

Where DispenseDt=today-1 as (DispenseDt);

4 Replies
sunny_talwar

This along should work:

Where DispenseDt = Today(1) - 1;

Not applicable
Author

sunny_talwar

You are doing this in SQL, try this:

Where DispenseDt = SYSDATE - 1;

rupamjyotidas
Specialist
Specialist

or

Where DispenseDt=CURDATE()-1

or

Where DispenseDt=GetDate()-1

Do check if DispenseDt date is only date or timestamp