Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Prabhu1204
Creator
Creator

Average in Pivot Table

Could you please help me on the below scenario.

 

I need to calculate Average Weight of the Site.

 

Need output. I used  the below formula and getting the right answer but the  site YYYY having (-) value. I need to display avg score on both of the site value.
=aggr(Sum(Score)/count(Score),ID)

RegionSitesIDAverage Weight  Given by sites for all the region ( AS per ID)
AXXX147.5
YYYY147.5
BXXX232
    
Original Data  
RegionSitesIDScore
AXXX145
AYYYY150
BXXX232

 

 

-Prabhu
1 Solution

Accepted Solutions
sunny_talwar

@Prabhu1204 May be this?

 

Sum(TOTAL <ID> Score)/Count(TOTAL <ID> Score)

 

View solution in original post

2 Replies
sunny_talwar

@Prabhu1204 May be this?

 

Sum(TOTAL <ID> Score)/Count(TOTAL <ID> Score)

 

Prabhu1204
Creator
Creator
Author

Thank you

-Prabhu