Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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