Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
iswarya
Partner - Creator
Partner - Creator

average

How to find average of all the month for each person

1 Solution

Accepted Solutions
Simon_Astakhov
Partner - Contributor III
Partner - Contributor III

Hi. You can reach it by some ways.

First is divide for amount of monthes like (your expression)/count(distinct [Month] & [Year])

Second is using AGGR function like avg(aggr(your expression, [person], [Month], [Year]))

[Year] field is optional in case of many years of data.

View solution in original post

1 Reply
Simon_Astakhov
Partner - Contributor III
Partner - Contributor III

Hi. You can reach it by some ways.

First is divide for amount of monthes like (your expression)/count(distinct [Month] & [Year])

Second is using AGGR function like avg(aggr(your expression, [person], [Month], [Year]))

[Year] field is optional in case of many years of data.