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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
roee1983
Contributor III
Contributor III

Average Calculation

Hi All,

is  there any chance to calculate both  average and sum toghther in the same expression?

i need the average  for total accuracy by countries average (sum(accuracy))  .

thanks

Roee

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you want to nest aggregation functions, for example the average of sums, you need to use the aggr function.

Something like avg(aggr(sum(accuracy),country)) to get the average of the sums of accuracy per country.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you want to nest aggregation functions, for example the average of sums, you need to use the aggr function.

Something like avg(aggr(sum(accuracy),country)) to get the average of the sums of accuracy per country.


talk is cheap, supply exceeds demand
roee1983
Contributor III
Contributor III
Author

Thanks!!

i did it wrong

aggr(avg(...)

thank u very much!

Roee