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: 
Ridone_2891
Contributor
Contributor

How to create Bucket

Hi, 

Can any one suggest how to create bucket of the following belew data..

Question : Create the following buckets for Discount:

    0-0.05

    0.06-0.1

    0.1-0.15

    0.16-0.25

 

   

Labels (1)
2 Replies
prma7799
Master III
Master III

Anil_Babu_Samineni
MVP
MVP

Since this is based on discount, Use like

If(discount>=0 and discount<=0.05, '0-0.05', If(discount>=0.06 and discount<=0.1, '0.06-0.1', If(discount>0.1 and discount<=0.15, '0.1-0.15', If(discount>=0.16 and discount<=0.25, '0.16-0.25')))) as Discount_Bucket

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