Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
satheshreddy
Creator III
Creator III

hi every body

hi,

how to find out avg in chart.

i have table columns are

eid,ename,did,salary

i take a filter of eid

select the eid value then to display the that particular did sum(salary) and also avg of that particular did salary.

kind regards

esreddy

Message was edited by: s r

13 Replies
Anonymous
Not applicable

=Concat(distinct DID,',')

will give all possible values of DID with current Selections

and the expression below will give universal set avg Salary of possible values of DID with current Selections

avg({1<DID={$(vListDID)}>}SALARY)

the expression you are saying will give Avg of only values of emp selected and not the whole department

vishsaggi
Champion III
Champion III

HI SR,

Just another way of doing this is:

Using Straight Table Chart:

Dimensions : Add DID

Expressions: 1. Sum(SALARY)

                    2. Aggr(Avg(SALARY), DID)

Regards,
Vish.

satheshreddy
Creator III
Creator III
Author

hi vishsaggi

Aggr(avg(SALARY),DID)

it shows only particular selection EID  avg

my requirement is particular selection EID department total avg 

satheshreddy
Creator III
Creator III
Author

HI SAGAR

avg({<DID=>}SALARY)

it shows only particular selection EID  avg

my requirement is particular selection EID department total avg