Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
sunil-kumar5
Creator II
Creator II

Top Performer

Hi All,

I have total score column from Table A and EMP name from TableB and both are linked based on employee ID.

I wanted to have a KPI showing top performer with score like 'Sunil Kumar 90' so I tried below expression and its working fine.

=FirstSortedValue(EMP_NAME &' ' &Aggr(Sum(PMS.Total_Score), EMP_NAME), -Aggr(Sum(PMS.Total_Score), EMP_NAME))

Now its showing total score as 'Sunil Kumar 1000' however If I select last month it should give 'Sunil Kumar 90'.

I have year and month from same Table A, I have just picked Employee Name from Table B.

Please advise as how my KPI will refelect correctly based on month selection.

Thanks

 

 

1 Reply
Brett_Bleess
Former Employee
Former Employee

@sunil-kumar5 have a look at the following Design Blog post, hopefully that may shed some further light upon things, but I think you are missing something in the AGGR piece here is my hunch, but I am not very good with Set Analysis, so hopefully the post will get you what you need:

https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.