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: 
NavinReddy
Creator II
Creator II

AVG

Dear All,

I am Calculating Avg for based on Users,But users are repeating that's why im using Standard id
here im calculating User AVG Per Year
These two expression im using
But i am getting Different values ,Please correct some on where im wrong

=avg(aggr(sum(PAY_AMT),[Standard Id],(Month)))=581.15
=Sum( PAY_AMT ) /Count(TOTAL [Standard Id] )=530.45

Thanks In Advance
Niranjan

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Check enclosed file..

Let us have brief description about your requirements.

View solution in original post

6 Replies
MK_QSL
MVP
MVP

Try DISTINCT instead of TOTAL

=Sum( PAY_AMT ) /Count(DISTINCT {1} [Standard Id] )


Or please provide sample file or apps.

NavinReddy
Creator II
Creator II
Author

Hi Manish,

yes i tried but not working thank you

Regards,

Niranjan

MK_QSL
MVP
MVP

Can you provide sample data?

NavinReddy
Creator II
Creator II
Author

Hi Manish,

please find sample data

S IdEmployee NameP_AMTYear
11765H2302014 01
11765H562014 02
53150S8922014 01
53150S122014 02
23203A4572014 01
23203A202014 02
23748I5622014 01
23748I4062014 02

Regards,

Niranjan

MK_QSL
MVP
MVP

Check enclosed file..

Let us have brief description about your requirements.

NavinReddy
Creator II
Creator II
Author

Thanks so much Manish..