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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
proctors
Creator
Creator

Comparing one Employee's Productivity to Everyone Else's

So we are trying to calculate an employees productivity, which is measured in RVU units to that of their own employee type. Now, it should also be noted that there are different types of employees, so we would also want them to be compared only to other employees of their type.

Here is the expression I've tried, but I cannot get it to show any data.

Used Dimensions for Bar Chart   = [Employee Name]

Employee's Own Productivity =Sum([RVU WORK]) (This one works)

Other Employee's Productivity of the same Type (excluding the currently selected employee)

=avg(aggr(sum({<[Employee Name]-=[Employee Name]>}[RVU WORK]),[Employee Name], [Employee Type]))

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

You are using employee as dimension, right?

Try using no dimension, but the two expressions only.

View solution in original post

15 Replies
vvira1316
Specialist II
Specialist II

Any Sample data may help.

Also in your expression

=avg(aggr(sum({<[Employee Name]-=[Employee Name]>}[RVU WORK]),[Employee Name], [Employee Type]))

will not only exclude selected employee but all of them

vishsaggi
Champion III
Champion III

May be try this?

=avg(aggr(sum({< [Employee Name] = P({1-$} [Employee Name]) >}[RVU WORK]),[Employee Name], [Employee Type]))

proctors
Creator
Creator
Author

Here is some cleaned data, but has the same structure as my tables.

Thus, I want to be able to compare A's sum to the average of B and C's summed data, and not D's sum RVU work.


       

Employee NameFY MonthYearRVU WorkEmployee Type
AJul-201799Psychologist
AAug-2017135Psychologist
ASep-2017128.54Psychologist
AOct-2017158.62Psychologist
ANov-2017111.85Psychologist
ADec-2017146.43Psychologist
AJan-2017122.4Psychologist
AFeb-2017133.13Psychologist
AMar-2017147Psychologist
AApr-201781.63Psychologist
AMay-201780.5Psychologist
AJun-2017100.4Psychologist
BJul-2017176.9Psychologist
BAug-2017232.26Psychologist
BSep-2017170.5Psychologist
BOct-201787.5Psychologist
BNov-2017157.22Psychologist
BDec-2017129.56Psychologist
BJan-2017146.26Psychologist
BFeb-2017157.3Psychologist
BMar-2017156.5Psychologist
BApr-2017153.5Psychologist
BMay-2017196.26Psychologist
BJun-2017126.9Psychologist
CJul-201773.5Psychologist
CAug-201786.4Psychologist
CSep-2017110Psychologist
COct-2017133.5Psychologist
CNov-2017130Psychologist
CDec-2017113.5Psychologist
CJan-2017128Psychologist
CFeb-2017157Psychologist
CMar-2017150.5Psychologist
CApr-2017127Psychologist
CMay-2017122.4Psychologist
CJun-2017149Psychologist
DJul-2017229.6Fellow
DAug-2017158.6Fellow
DSep-2017166.12Fellow
DOct-2017185.74Fellow
DNov-2017163.54Fellow
DDec-2017162.7Fellow
DJan-2017168.5Fellow
DFeb-2017187.4Fellow
DMar-2017166.5Fellow
DApr-2017222.2Fellow
DMay-2017200.5Fellow
DJun-201793.2Fellow
proctors
Creator
Creator
Author

Not working, coming up blank.

vishsaggi
Champion III
Champion III

What is your expected output out of this data. What are your selections i mean when you select and Employee what should be your expected out put to be and where you want to see this ? In a table or in a text box?

proctors
Creator
Creator
Author

So I select Employee A from my list box.

In my bar graph, I have the sum of A's RVU in column 1, then the average of B and C's data in a second column. This way we can do a side-by-side comparison.

vishsaggi
Champion III
Champion III

Ok you said in your initial post like below

"Other Employee's Productivity of the same Type (excluding the currently selected employee)"

So if you select A from the Employee Listbox you mean exclude A ? Can you clarify please?

swuehl
Champion III
Champion III

Maybe something like

=avg({<[Employee Name] = e(), [Employee Type] = p()>}

     aggr(

      sum({<[Employee Name] = e(), [Employee Type] = p()>} [RVU WORK])

     ,[Employee Name])

)

vvira1316
Specialist II
Specialist II

Hi,

Will there be always one employee selected or more than one/All by each type etc. That will impact calculation. Please advise.

This is what I've got so far but want to wait till you provide additional info..