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: 
Not applicable

Need help for an expression to get max message a person has received.

Hello folks,

I am trying to create a qlikview app and I am stuck at a chart. Please help me. The requirement is to show maximum messages a person has received per category. I have three fields:  MSG_ID, Person_ID and Soruce which has two Values Med and Com.

I just need max messages one person has received in each source category.

I really appreciate all your help and suggestions.

Thank you,

Syed.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

In two text boxes:

=Max(Aggr(Count({<Source = {'Med'}>} MSG_ID), Person_ID))

=Max(Aggr(Count({<Source = {'Com'}>} MSG_ID), Person_ID))

In table with Source as a dimension:

=Max(Aggr(Count(MSG_ID), Person_ID))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

In two text boxes:

=Max(Aggr(Count({<Source = {'Med'}>} MSG_ID), Person_ID))

=Max(Aggr(Count({<Source = {'Com'}>} MSG_ID), Person_ID))

In table with Source as a dimension:

=Max(Aggr(Count(MSG_ID), Person_ID))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thank you Jonathan, It worked.

you guys makes Qlikview learning so much easier. appreciate it.