Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jlampard40
Contributor III
Contributor III

Calculating average per week Set Analysis

Hi guys 

I have set analysis which calculates how many clients are currently waiting, based on today's date:

=Count({<[WBR_Stat_Date] = {"$(=Date(Today()))"}>} [WBR_Event_Key])

This works great!  However, what set analysis do I need to use to calculate the average number of clients waiting since records began in my company (3 months ago!)  The field [WBR_Stat_Date] is what signifies the date of each stat.  Many thanks.

Labels (1)
1 Solution

Accepted Solutions
rubenmarin

Hi, maybe with?

=Count([WBR_Event_Key])/Count(Distinct [WBR_Stat_Date])

// Counting all WBR_Event_Key (is this what says that clients are waiting?) divided by different dates

 

or:

=Count([WBR_Event_Key])/(Max([WBR_Stat_Date])-Min([WBR_Stat_Date]))

This version counts all days between the lower and higher dates

View solution in original post

2 Replies
rubenmarin

Hi, maybe with?

=Count([WBR_Event_Key])/Count(Distinct [WBR_Stat_Date])

// Counting all WBR_Event_Key (is this what says that clients are waiting?) divided by different dates

 

or:

=Count([WBR_Event_Key])/(Max([WBR_Stat_Date])-Min([WBR_Stat_Date]))

This version counts all days between the lower and higher dates

jlampard40
Contributor III
Contributor III
Author

Thanks so much!