Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trouble with mode function

Hello,

I have a problem with mode function (moda (minutos)) in order to find the most occurring value displayed in a KPI.

Captura de pantalla 2015-12-16 a las 1.04.00 p.m..png

The problem is when different values are occurring the same amount of times, then null is retrieved.

What alternatives i have to fix the problem?

King Regards

Gerd Neumann

3 Replies
reddy-s
Master II
Master II

Hi Gerd,

Thats the limitation of the MODE function. When the occurrence of two values is the same a NULL is returned.

Try this function instead:

max(aggr(count(<Field>),<Field>))

Not applicable
Author

Hello Sangram,

I tried this and still not working

Captura de pantalla 2015-12-17 a las 2.53.56 p.m..png

Captura de pantalla 2015-12-17 a las 2.54.13 p.m..png

Regards,

Gerd Neumann

Thabang231
Contributor III
Contributor III

Hi @reddy-s  I am also experiencing the same issue, please assist me with a solution, thanks in advance.