Skip to main content
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?

1 Solution

Accepted Solutions
rubenmarin

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

View solution in original post

2 Replies
rubenmarin

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

Many Thanks Rubenmarin 🙂