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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Most repeated value

Hi all,

i have to obtain the most repeated value in a field. For example :

LOAD * INLINE [

    Value

    1

    2

    3

    3

    4

    4

    4

    5

];

The most repeated value is 4. Anyone know how to do it?

Thanks in advanced

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

4 Replies
sunny_talwar
MVP
MVP

Try with Mode function may be

Mode(Value)

sunny_talwar
MVP
MVP

Check for a script based example here:

What is functionality of mode function?

cspencer3
Creator II
Creator II

Mode() should do the trick!

Not applicable
Author

Great!! thanks Sunny, i lost many time trying with the funcion "for" and "if"