Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Maximum times repeated output in text object

Hi,

i have 3 companies and i want the URL which has been repeated the most to be displayed in the text box below it.

Your assistance on this would be appreciated.

1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

Even better, you may want to use:

=firstsortedvalue(distinct [Most viewed_1],-aggr(count([Most viewed_1]), [Most viewed_1]))

to handle ties (since if they are more than one link that has the highest, firstsortedvalue without the distinct will return null.

Hope this helps!

View solution in original post

6 Replies
jerem1234
Specialist II
Specialist II

Used this expression:

=firstsortedvalue([Most viewed_1],-aggr(count([Most viewed_1]), [Most viewed_1]))

Please find attached.

jerem1234
Specialist II
Specialist II

Even better, you may want to use:

=firstsortedvalue(distinct [Most viewed_1],-aggr(count([Most viewed_1]), [Most viewed_1]))

to handle ties (since if they are more than one link that has the highest, firstsortedvalue without the distinct will return null.

Hope this helps!

Not applicable
Author

Thanks Jerem...

Not applicable
Author

When i am trying on the actual dashboard where instead of list box i have to show the same result just infront of each company shown in an adjacent text box, the result is not coming....Can you please check what i am missing...

thanks  aton

jerem1234
Specialist II
Specialist II

Looking at your field [Most viewed_1], you have no values for any of the rows. This is why they are coming back as null.

Not applicable
Author

thanks..i figured out the problem.....