Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

intervals

Hi Experts,

i have to create a list box which enables selection of metrics grouped in intervals of 2 (1-2, 3-4, 5-6).

How to do this. can anyone please explain with example

1 Solution

Accepted Solutions
sunny_talwar

use if statement or class function

Class Function Example

View solution in original post

5 Replies
Anil_Babu_Samineni

You can create using valuelist

Or

Bucket / interaction match

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

use if statement or class function

Class Function Example

rupamjyotidas
Specialist
Specialist

I really like to create the Buckets in the script when possible to maintain the simplicity of the Application.

MarcoWedel

Hi,

one solution might be:

QlikCommunity_Thread_237004_Pic1.JPG

LOAD *,

    Dual(Floor(Value,2,1)&'-'&(Floor(Value,2,1)+1),Floor(Value,2,1)) as ValueGroup;

LOAD RecNo() as Value

AutoGenerate 30;

hope this helps

regards

Marco

Anonymous
Not applicable
Author

Hi Rajendran,

You can use class() function here, it will create a bucket and separate your values according to the intervals.

Following are the examples for class function:-

  • class( var,10 ) with var = 23 returns '20<=x<30'
  • class( var,5,'value' ) with var = 23 returns '20<= value <25'
  • class( var,10,'x',5 ) with var = 23 returns '15<=x<25'

Thanks,