Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

How to create user defined Range or Buckets ?

Hi All ,

     

ClientProductSub_ProductLegendValueRank
Accra-Pac, Inc.Torsemidelevothyroxine sodiumLatency581
ALK-Abello, Inc.AnastrozoleAnastrozoleAccuracy588
AuroMedics Pharma LLCHead and ShouldersPyrithione ZincAccuracy544
AvKARE, Inc.AnastrozolerotigotineAccuracy542
Bath & Body Works, Inc.AmpicillinBUPIVACAINE HYDROCHLORIDEAccuracy512
Bolero Home Decor, Inc.TorsemideTorsemideAccuracy608
Cadila Healthcare LimitedGemfibrozilGemfibrozilAccuracy588
Cardinal HealthMatch Perfection SPF 20AlcoholAccuracy555
Cardinal HealthPhentermine HydrochloridePhentermine HydrochlorideLatency513

With above sample data i want to create three bucket to show below in chart

Count of Client whose Rank fall between

1) X - Y (Bucket 1)

2) A - B  (Bucket 2)

3) C - D  (Bucket 3)

Basically end user should be able to assign or decide value of A,Y ; A,B ; C,D ...

Ex - If user feels that in bucket 1 he/she should see the count of client with rank having 1 to 3 , then UI should have option to let select 1 and 3 , and for bucket 2 all the rank value from 4 to 6 , similarly for bucket 3 rank value from 6 to 9

I am not sure how to achieve this . Data is attached as well .

Thanks & Regards

Shekar

1 Solution

Accepted Solutions
sasikanth
Master
Master

HI shekar,

you can achieve this using Variables & Input box

create two variable & 2 input boxes for every bucket

Ex:  Var1Min ,Var1Max


and use below exp to define range in a calculated Dimension


If( Rank >=$(Var1Min) and Rank<=$(Var1Max) ,"Bucket1",

     IF(Rank >=$(Var2Min) and Rank<=$(Var2Max) ,"Bucket1",    

              IF(Rank >=$(Var3Min) and Rank<=$(Var3Max) ,"Bucket1")))

Not a best one but still you can use

View solution in original post

9 Replies
shekhar_analyti
Specialist
Specialist
Author

Siva_Sankar
Master II
Master II

Hi Shekar,

You can use interval match for this purpose. Find my step by step document on this.

Interval Match Feature/Function

-Siva

shekhar_analyti
Specialist
Specialist
Author

Hi Siva ,

Thanks for reply  .
Can you please suggest me way to have three Bucket using Interval match . Because i am not sure how to get it ..

sasikanth
Master
Master

HI shekar,

you can achieve this using Variables & Input box

create two variable & 2 input boxes for every bucket

Ex:  Var1Min ,Var1Max


and use below exp to define range in a calculated Dimension


If( Rank >=$(Var1Min) and Rank<=$(Var1Max) ,"Bucket1",

     IF(Rank >=$(Var2Min) and Rank<=$(Var2Max) ,"Bucket1",    

              IF(Rank >=$(Var3Min) and Rank<=$(Var3Max) ,"Bucket1")))

Not a best one but still you can use

shekhar_analyti
Specialist
Specialist
Author

Hi All ,

I solved it using input box .. Any other suggestion is highly welcomed !!

shekhar_analyti
Specialist
Specialist
Author

Can you suggest me a best case for this

shekhar_analyti
Specialist
Specialist
Author

Can you suggest me way to achieve in Qliksense with No extension ..

sasikanth
Master
Master

I don`t think we can achieve the same with out a input box extension in Sense,

why without extension ?

stabben23
Partner - Master
Partner - Master

Hi,

try if this solve Your requirement.