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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Edge
Creator
Creator

Aggregate function not working

Hello.

I have a table that has multiple entries for each student for different information. but I want to find out the average GPA for these students excluding duplicate rows. The below expression doesn't work with me though:

aggr(DISTINCT Avg(RetentionModel.CumGPA),RetentionModel.EMPLID,RetentionModel.CumGPA)

Also, if I want to add set analysis like to exclude GPA of Zero, where in this expression can I do this?

Labels (1)
1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

Hi, maybe with:
Avg({<RetentionModel.CumGPA-={0}>} aggr(DISTINCT RetentionModel.CumGPA, RetentionModel.EMPLID,RetentionModel.CumGPA))

View solution in original post

2 Replies
rubenmarin
MVP
MVP

Hi, maybe with:
Avg({<RetentionModel.CumGPA-={0}>} aggr(DISTINCT RetentionModel.CumGPA, RetentionModel.EMPLID,RetentionModel.CumGPA))
Edge
Creator
Creator
Author

Many Thanks Rubenmarin 🙂