Skip to main content
Announcements
See why Qlik was named a Leader in the 2025 Gartner® Magic Quadrant™ for Augmented Data Quality Solutions: GET THE REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Harsha1
Contributor

Chart

 

Student_id , Student_name, Class, subject , Marks , Date_of_exam are the columns in my table 

Bonus report : Number of student who have got more marks then the class average.

 

I need to generate a chart for the above condition i tried multiple ways but not able to succeed. #QlikSense

QlikView  

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi @Harsha1 

Try like below

Year field derived based on ExamDate.

MayilVahanan_0-1605852223143.png

 

Exp:

Sum(Aggr(If(Avg(Total<Class, Year> Marks) <= Avg(Marks), 1, 0), Class, Student_name, Year))

 

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

3 Replies
Harsha1
Contributor
Author

  • Can some one please help me on this 
MayilVahanan

Hi @Harsha1 

Try like below

Year field derived based on ExamDate.

MayilVahanan_0-1605852223143.png

 

Exp:

Sum(Aggr(If(Avg(Total<Class, Year> Marks) <= Avg(Marks), 1, 0), Class, Student_name, Year))

 

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

Thanks somuch