Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Generating a statistic report based on buckets

Hi,

I am rather new so it might be an easy question -

Suppose I have a data source of (Sessions):

UsernameDayMinutesInWebsite
User1110
User1120
User2130
User1215

Username | Day | MinutesInWebsite

User1, 1, 10

User1, 1, 20

User2, 1, 30

User1, 2, 15

I would like to generate a report that would display this:






Day 1Day 2Day N...
AverageTime20 ((10+20+30)/3)15
Total Users31

---

For the sake of the example I use Day as an integer, most likely though is that I will use a date parameter instead and would like to know how I can define a report that takes such ranges in mind (eg split into week buckets, or months, etc).

If this is a complex question please direct me to the correct reading material.

Much appreciated,

Alon Cohen

13 Replies
Not applicable
Author

Hi, thanks that does look like the right direction for me though still 'hard coded' dates.

I was hoping to be able to set a 'dimensions' parameter - eg: 1, 7, 30, 365 and let the report do the rest.

It seems I need to read about: cycle groups, Add Calculated Dimension -

If I find a generic way to handle this (as opposed to hard-coded dates in the expression) I will post it.

Thanks for the help,

Alon

SunilChauhan
Champion II
Champion II

will this solve ur problem or still u require any help

Sunil Chauhan
Not applicable
Author

The only thing missing is out to not have to hard-code the date values into the report,

Once I figure that out (or if anyone knows) that would solve my problem entirely.

Thanks for the help,

Alon

Not applicable
Author

Hi everyone,

The way to handle this problem in a generic way (eg same report for day, week, yearly) is to add this:

Pivot table properties -> Dimensions -> Add Calculated Dimension ->

Days- =DayName(Date)

OR Week- =WeekName(Date)

OR Year - =YearName(Date)

This esentially takes your specific row runs it against this filtering function and relates into a proper 'bucket' of day/week/year etc.

Hope it helps,

Alon