Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date based on Max Count

Hi all,

I want to show the date(s) with the largest amount of visitors in a text object.

Example:

Date:               Visitor:

01-04-2017          John

01-04-2017          Paul

01-04-2017          Ronald

02-04-2017          Donald

03-04-2017          John

03-04-2017          Paul

So, I expect to see a result 01-04-2017 in my text object. Even more, if multiple days have the largest amount of visitors I want to see all dates.

Thank you in advance

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

=concat ( IF( aggr ( Rank(count(1)),Date)=1, Date & chr(10)))... You can use any seperator instead of Chr(10)

View solution in original post

4 Replies
Anil_Babu_Samineni

May be this

FirstSortedValue(Date, -Aggr(Count(Date),Date))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

=concat ( IF( aggr ( Rank(count(1)),Date)=1, Date & chr(10)))... You can use any seperator instead of Chr(10)

Not applicable
Author

Thanks, this works!!

Not applicable
Author

Thank you, this works if there is only one busiest day. Thanks you for your time.