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.