Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How can I create logical buckets using data from a column in load script?

My Data has a

1. Field : name of the field is [AHT_of_Call]. Using this data I first need to build AHT bucket (as shown in the table below).

then once these buckets are available i want to count the number of records by people (which i will take from field name Created By).

I am struggling to build AHT Buckets (shown in table below) in the Load Script.

Please help

      

BucketMadhukarNaveenPremanshTaufeeqTotal
60-3001586752214491
300-42001045
420-54000000
540-66000000
660-72000000
720 & Above00000
Total1586852218496
1 Solution

Accepted Solutions
shiveshsingh
Master
Master

You can create buckets by calculated dimension

=if([Aht Of Call]>=60 and [Aht Of Call]<=300,'60-300',if([Aht Of Call]>='300' and [Aht Of Call]<='420', '300-420',if([Aht Of Call]>='420' and [Aht Of Call]<='540','420-540',

if([Aht Of Call]>='540' and [Aht Of Call]<='660', '540-660', if([Aht Of Call]>='660' and [Aht Of Call] ='720', '660-720', '720 & Above')))))

View solution in original post

5 Replies
shiveshsingh
Master
Master

You can create buckets by calculated dimension

=if([Aht Of Call]>=60 and [Aht Of Call]<=300,'60-300',if([Aht Of Call]>='300' and [Aht Of Call]<='420', '300-420',if([Aht Of Call]>='420' and [Aht Of Call]<='540','420-540',

if([Aht Of Call]>='540' and [Aht Of Call]<='660', '540-660', if([Aht Of Call]>='660' and [Aht Of Call] ='720', '660-720', '720 & Above')))))

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can write simple if statements like below.

If( [AHT_of_Call] <=60,'0-60',

If( [AHT_of_Call] <=300,'60-300',

If( [AHT_of_Call] <=420,'300-420',

.......... ) as Bucket


And use this field in your chart dimension.


Regards,

Kaushik Solanki


Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

Thanks !!.. this helps

Anonymous
Not applicable
Author

thanks this helps

shiveshsingh
Master
Master

Please close the thread by marking correct answer