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

Average based on calculated aggr value

Hi

I am looking to calculate an average page view per session for a web application.

I have managed to use an aggr expression in a table to calculate the unique page views per Session but now want to calculate the average unique page across all sessions loaded into qv.

Attached is a sample qv file with data loaded inline and where I have got to so far.

What i wanted to do was use count the distinct session IDs and divide by the total amount of unique pages to gain an average.

Any help appreciated.

Thanks

Martin

1 Solution

Accepted Solutions
sunny_talwar

Do you expect 7.4? May be this

=Avg(Aggr(Count(Distinct PAGE),SESSION_ID))

View solution in original post

2 Replies
sunny_talwar

Do you expect 7.4? May be this

=Avg(Aggr(Count(Distinct PAGE),SESSION_ID))

martin_hamilton
Creator
Creator
Author

Thanks Sunny that worked a treat.