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

1 Solution

Accepted Solutions
Gysbert_Wassenaar

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

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

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