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: 
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
MVP
MVP

This along should work:

Where DispenseDt = Today(1) - 1;

Not applicable
Author

sunny_talwar
MVP
MVP

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