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

Cast Current Date in Qlikview

Hi! i'm trying to convert this SQL string in qlikview:

case when FLOOR(CAST(CURRENT_DATE AS DATE) - CAST(a11.EXPIRE_DATE AS DATE)) < 0 then 0 else FLOOR(CAST(CURRENT_DATE AS DATE) - CAST(a11.EXPIRE_DATE AS DATE)) end


I tried many times but I think the problem is in converting "CAST(CURRENT_DATE AS DATE)" in the right way.

So someone have the solution at this problem??

Thanks

1 Reply
flipside
Partner - Specialist II
Partner - Specialist II

Hi,

Are you trying to pass a sql query via ODBC/OLEDB or convert the code to Qlikview load script?