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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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