Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
March 26 at 10am ET: See how Qlik drives growth and value in ISV segment - REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Harsha1
Contributor
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
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
Contributor
Author

Thanks somuch