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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Average Calculation - Set Analysis

Dear Team,

Need your help in set Analysis.

I would like to calculate the average time for each teams excluding the zero hours count.

Kindly refer the "avg calculation" file.Here in row 15 I have updated the required results.The average should be based on only the time which are greater than zero.I have highlighted the greater than times in Green.

If you see "Team3" average it is 16:15,however if we go by only the considered hours(>0) it comes to 32:30.

Could you please help me in arriving the required numbers by set analysis

I am attaching the sample qv file with raw data also for your kind reference

Thanks & Regards

Jeba

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

have a look

at the attach example , hope it helps you

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Dear Team,

Could you please help.

Thanks & Regards

Jeba

Not applicable
Author

Hi,

you could use the below expression.

sum(Time)/count(if(Time>0,1,0))

lironbaram
Partner - Master III
Partner - Master III

have a look

at the attach example , hope it helps you

Anonymous
Not applicable
Author

Hi Liron,

Its working perfect.

Great and thanks a lot for youe immediate reply

Thanks & Regards

Jeba