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

Total of all Averages

Dear all

Can someone advise me how to compute the total of all averages for last column in Table 1 ?.

The correct answer is shown in Table 2, Student A - 20, Student B - 16.

Thank you, Tracy

 

 

 

1 Solution

Accepted Solutions
MayilVahanan

Hi @tracycrown ,

Try like this

If(RowNo()=0 or IsNull(RowNo()),
Sum(Aggr(If(avg(Score)>= (Lower) and avg(Score) <= (Upper),Grade),Student, Subject, Lower, Upper)),
avg(Aggr(If(avg(Score)>= (Lower) and avg(Score) <= (Upper),Grade),Student, Subject, Term, Score, Lower, Upper)))

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

View solution in original post

2 Replies
MayilVahanan

Hi @tracycrown ,

Try like this

If(RowNo()=0 or IsNull(RowNo()),
Sum(Aggr(If(avg(Score)>= (Lower) and avg(Score) <= (Upper),Grade),Student, Subject, Lower, Upper)),
avg(Aggr(If(avg(Score)>= (Lower) and avg(Score) <= (Upper),Grade),Student, Subject, Term, Score, Lower, Upper)))

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 do much for your quick response, you are very knowledgeable and helpful and I have learned something new from you. 

Best Regards, Tracy