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: 
tracycrown
Creator III
Creator III

Wrong Average Computation

Dear all

Can someone kindly advise why the average is computed wrongly, the correct answer should be :

Score 71.25 and Point 3.35 

Thank you, Tracy

Labels (1)
2 Replies
MayilVahanan

Hi @tracycrown 

FYI, avg in the excel sheet also 70.8

MayilVahanan_0-1605068096738.png

In order to achieve the result, Try like this

If(Isnull(RowNo()), Avg(Aggr(avg(Score),Year,Class)), avg(Score))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
tracycrown
Creator III
Creator III
Author

Dear Mr MayilVahanan

Thank you so much for your QUICK response, I tried and both worked.

If I change the Point to computation mode under expression, please advise how to apply your method.

Also,  kindly advise why NO Grade for Score 80.50 in Class A etc. and Average for Point (3.3) is WRONG ??

Thank you, Tracy