Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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

1 Solution

Accepted Solutions
4 Replies
sunny_talwar

Try with Mode function may be

Mode(Value)

sunny_talwar

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"