Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Igor_Torrealba
Contributor
Contributor

Set Analysis: Count only latest record per Player and Skill

Hi, 

I have a raw table as shown below, where I have "Players" that get assessed on "Skills" multiple times.

PlayerSkillRatingCategoryAssessment Date
Lionel MessiDribbling3.53-41/1/2021
Lionel MessiDribbling43-45/1/2021
Lionel MessiFree Shots3.53-41/1/2021
Lionel MessiFree Shots3.93-45/1/2021
Luis SuarezDribbling22-31/1/2021
Luis SuarezDribbling2.82-35/1/2021
Luis SuarezFree Shots33-41/1/2021
Luis SuarezFree Shots3.53-45/1/2021
PedriDribbling2.22-31/1/2021
PedriDribbling3.13-45/1/2021
PedriFree Shots11-21/1/2021
PedriFree Shots1.61-25/1/2021
Ansu FatiDribbling2.12-31/1/2021
Ansu FatiDribbling2.62-36/2/2021
Ansu FatiFree Shots11-21/1/2021
Ansu FatiFree Shots1.21-25/1/2021

 

My output should be a table with skills, and counting number of players on each category, then I need to consider the Rating obtained on the last assessment only. The assessment date might differ between players also, so using Max(date) didn't work as it takes only the max date of the whole table and will get nulls on players that do not have that date. 

Skill0-11-22-33-4
Dribbling  22
Free Shots 2 2

 

For dribbling, level 3-4 it counts 2 players (Messi and Pedri both assessed on the same date)
*** For dribbling, level 2-3 it counts 2 players (Luis Suarez on Jan 5th, and Ansu Fati on Feb 6th....)
etc etc...

 

Any idea of a workaround for this? - I don't want to loose the historical data though so I can build also later evolution charts...

Labels (3)
0 Replies