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: 
helen_pip
Creator III
Creator III

Between Function equivalent

Hello

I was wondering if someone oculd help me write a function which may otherwise use the function between

I want to show the number of people with a waiting time between 60 and 120

I.e. If([Waiting_Time] between 60 and 120, 1,0) scenario

Can anyone help me?

Kind Regards

Helen

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Unfortunately QV has no between function. You'll have to use if(Waiting_Time>=60 and Waiting_Time<=120,1,0)


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Unfortunately QV has no between function. You'll have to use if(Waiting_Time>=60 and Waiting_Time<=120,1,0)


talk is cheap, supply exceeds demand
its_anandrjs
Champion III
Champion III

Hi,

You can write this script like

Before

If([Waiting_Time] between 60 and 120, 1,0)

similar to

If([Waiting_Time] >=60 and [Waiting_Time] <=120, 1,0)

HTH

Regards,

Anand

helen_pip
Creator III
Creator III
Author

Hello

Thank you!  It works.  I should of realised what I should write it like that. 

Thanks alot

Helen

helen_pip
Creator III
Creator III
Author

Hello,

Thank you for this.  It works

Thanks

Helen