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

Average Needed

Hi All i have the following date on left date and time per day for the weeks

I needed to get week number and the average for this time.

No Sure how to do this because to get this i already have Sum(Time)

So to get the Average of that time per week is a bit tricky.

So bit in Black i have =

Dimension -   Date

Expression - Sum(Time)

Need bit in red.

Thanks All

04-Jan

05:00Week 100:03:53
05-Jan04:09
06-Jan03:59
07-Jan04:46
08-Jan03:58
09-Jan01:25
10-Jan00:00
11-Jan04:15
12-Jan03:31Week 200:03:48
13-Jan03:23
14-Jan05:06
15-Jan04:34
16-Jan01:57
17-Jan00:00
1 Solution

Accepted Solutions
sunny_talwar

Do you have week field from your script? If it has, then may be this:

Avg(TOTAL <WeekField> Aggr(Sum(Time), Date, WeekField))

View solution in original post

2 Replies
sunny_talwar

Do you have week field from your script? If it has, then may be this:

Avg(TOTAL <WeekField> Aggr(Sum(Time), Date, WeekField))

Anonymous
Not applicable
Author

Thanks Sunny...As Always