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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

aggr & max

Hi There,

I need to get the contact type of a mem no based on the max log id.

E.G. from a table list

MEM NO LOG ID CONTACT TYPE
1 12 Successful
2 13 Successful
3 14 Successful
4 15 Successful
4 16 Unuccessful

I need to get the following on a pivot chart

MEM NO CONTACT TYPE
1 Successful
2 Successful
3 Successful
4 Unuccessful

Any ideas on how to do this using Aggr or other?

Thanks,
Kevin.

2 Replies
Not applicable
Author

Hi Kevin,

so far I see you can solve your problem in the same way as the attached application shows.

Good luck!

Rainer

Anonymous
Not applicable
Author

Try this:

MAXSTRING((IF([LOG ID] = AGGR(NODISTINCT MAX([LOG ID]),MEMNO),[CONTACT TYPE],'-')))