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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set analysis in concat/aggr function?

Hi!

I'm trying to display the Team name that a person belongs to. Problem is that the person can belong to several teams in the past. What i want to see is only the team that the person blongs to today.

This is the one i'm currently using

concat(distinct aggr(if(sum(Points)>0,Team),Name,Team),',')

(Points must be moore than 0 by the way, hence the expression. )

But that gives me all the teams the person belongs to. how do i do this to include the Date issue?

//A.

12 Replies
perumal_41
Partner - Specialist II
Partner - Specialist II

Upload ur Qvw file

erichshiino
Partner - Master
Partner - Master

I'm not sure about the criteria to show only one,

but you can use set analysis with maxstring as well...

=maxstring( {<TEAM = {"=SUM(POINTS)>0"}>} TEAM)

EDIT : Correction in the expression

Anonymous
Not applicable
Author

This one is close but the problem here is that maxstring collects the last team and the teams are in an alfabetical order so it shows the wrong value when it comes to terms of last team-membership date-wise.