Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help with expression

Hi guys,

I have the following in SQL

datediff(dd,due_date,getdate()) between '1' and '30' - This is basically doing between 1 and 30 days from today..

Can I recreate this as an expression?

Thanks

1 Solution

Accepted Solutions
pamaxeed
Partner - Creator III
Partner - Creator III

Interval(now() - due_date,'DD') as DaysDiff

look in the HELP section about interval function...very powerful in Qlikivew

Cheers,

Patric

View solution in original post

4 Replies
villegasi03
Creator
Creator

try networkdays(today(), due_date)

Gysbert_Wassenaar

if( interval(due_date - today(), 'd') >=1 and interval(due_date - today(), 'd') <= 30, 'True', 'False')


talk is cheap, supply exceeds demand
pamaxeed
Partner - Creator III
Partner - Creator III

Interval(now() - due_date,'DD') as DaysDiff

look in the HELP section about interval function...very powerful in Qlikivew

Cheers,

Patric

Anonymous
Not applicable
Author

Thanks for all your help as always guys.. I used Patric's solution in the end