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: 
farheenayesha
Creator
Creator

How to create buckets using time

Hi,

 I want to create four buckets as below using the Closed in time field. 

1. <=5PM -Wd2 ( Starts from 12AM of WD+1 to 5PM  of WD+2)
2. >5PM - Wd2  ( Starts after 5PM of WD+2 to 12 AM of  WD+3)
3. <=5PM - Wd3  ( Starts from 12 AM of WD+3 to 5 PM of  WD+3)
4. >5PM - Wd3  ( Starts after 5PM of WD+3)

I have three workdays WD+1,WD+2 and WD+3. I want to calculate the Count of ID's for these four time slots in bar graph. Please find the data attached and please help me to get the result.

Ex: for this group <=5PM -Wd2 what is the count of ID's. Similarly for all four groups.

@sunny_talwar 

2 Replies
sunny_talwar

Would you be able to specify the expected output based on the data provided? and may be explain it a little

farheenayesha
Creator
Creator
Author

Hi Sunny,

I have added month field in the attached data. Please consider the new data file attached.

 Ex. If i take the  data only for <=5PM -Wd2 and Jul Month, which includes records having time less than 5PM, then the count of ID's should be 98.  Please find the data below.  also attaching the complete data.

Closed in WDClosed in TimeIDMonth
WD+24:50 PMAT01July'18
WD+24:50 PMAT02July'18
WD+24:56 PMDE19July'18
WD+24:46 PMDE25July'18
WD+24:30 PMDE28July'18
WD+23:10 PMES09July'18
WD+24:58 PMFR05July'18
WD+24:07 PMGB66July'18
WD+22:26 PMIE01July'18
WD+24:07 PMIE04July'18
WD+24:07 PMIE05July'18
WD+24:23 PMIE10July'18
WD+24:30 PMIE12July'18
WD+24:23 PMIE16July'18
WD+23:12 PMIE17July'18
WD+23:12 PMIE18July'18
WD+23:12 PMIT01July'18
WD+23:12 PMIT02July'18
WD+23:12 PMIT03July'18
WD+23:12 PMIT04July'18
WD+23:09 PMNL01July'18
WD+22:46 PMNL06July'18
WD+22:46 PMNL08July'18
WD+22:46 PMNO01July'18
WD+22:46 PMNO02July'18
WD+22:46 PMNO04July'18
WD+22:46 PMPL01July'18
WD+22:46 PMPL03July'18
WD+22:46 PMPT01July'18
WD+22:46 PMPT02July'18
WD+22:11 PMPT04July'18
WD+25:00 AMPT07July'18
WD+25:00 AMPT08July'18
WD+25:00 AMUS46July'18
WD+25:00 AMUS50July'18
WD+2 4:00 PMUSAFJuly'18
WD+2 4:30 PMFR09July'18
WD+2 4:30 PMGB02July'18
WD+2 5:00 PMGB06July'18
WD+2 5:00 PMGB08July'18
WD+2 5:00 PMGB09July'18
WD+2 4:00 PMGB19July'18
WD+2 5:00 PMGB1AJuly'18
WD+2 5:00 PMGB20July'18
WD+2 5:00 PMGB21July'18
WD+2 5:00 PMGB22July'18
WD+2 4:30 PMGB23July'18
WD+2 5:00 PMGB24July'18
WD+2 4:30 PMGB25July'18
WD+2 5:00 PMGB26July'18
WD+2 5:00 PMGB30July'18
WD+2 5:00 PMGB31July'18
WD+2 4:30 PMGB33July'18
WD+2 4:30 PMGB34July'18
WD+2 4:00 PMGB35July'18
WD+2 5:00 PMGB38July'18
WD+2 4:00 PMGB39July'18
WD+2 4:30 PMGB40July'18
WD+2 4:00 PMGB41July'18
WD+2 4:00 PMGB42July'18
WD+2 4:00 PMGB44July'18
WD+2 4:00 PMGB45July'18
WD+2 4:00 PMGB47July'18
WD+2 4:00 PMGB49July'18
WD+2 4:00 PMGB55July'18
WD+2 4:00 PMGB58July'18
WD+2 5:00 PMGB59July'18
WD+2 4:00 PMGB5QJuly'18
WD+2 4:00 PMGB64July'18
WD+2 4:00 PMGB70July'18
WD+2 4:00 PMGB71July'18
WD+2 4:00 PMGB73July'18
WD+2 4:00 PMGB74July'18
WD+2 4:00 PMGB78July'18
WD+2 4:00 PMGB80July'18
WD+2 5:00 PMGB81July'18
WD+2 4:30 PMGB82July'18
WD+2 4:00 PMGB83July'18
WD+2 4:00 PMGB84July'18
WD+2 4:00 PMGB87July'18
WD+2 4:00 PMGB88July'18
WD+2 4:00 PMGB89July'18
WD+2 4:00 PMGB91July'18
WD+2 4:00 PMGB93July'18
WD+2 4:00 PMGB94July'18
WD+2 4:00 PMGB95July'18
WD+2 4:00 PMGBAJJuly'18
WD+2 4:00 PMGBALJuly'18
WD+2 4:00 PMGBAUJuly'18
WD+2 4:00 PMGBAVJuly'18
WD+2 4:00 PMGBAYJuly'18
WD+2 4:00 PMGBBCJuly'18
WD+2 4:00 PMGBBFJuly'18
WD+2 4:30 PMGBCDJuly'18
WD+2 4:00 PMGBCEJuly'18
WD+2 4:00 PMGBCFJuly'18
WD+2 4:30 PMGBCGJuly'18
WD+2 04.03 AMID04July'18