Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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"