Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ganeshreddy
Creator III
Creator III

Show frequency in list-box(custom made by Expression) ?

Hi All,

Ia m finding difficulty wile showing the frequency of of bucket, list box illustrated in below picture. PFA attached QVW as well

Capture1.PNG

1 Solution

Accepted Solutions
ashwanin
Specialist
Specialist

add the below script

inline:

LOAD * INLINE [

    name, age, 

    sri, 25

    ram, 10

    ganesh, 20

    vamsi, 12

    venkat, 18

    valli, 15

    satish, 30

    rajesh, 28

    dharam, 27

    dhana, 19

    sunny, 20

    yashu, 6

];

load *,

Dual(Replace(Class(age,10),'<= x <','to'), Num(Class(age,10))) as Bucket

resident inline;

QVW Attached

View solution in original post

8 Replies
morganaaron
Specialist
Specialist

Are you not just using the wrong field? If you want the frequency use Count(distinct name) and it should work..

ashwanin
Specialist
Specialist

Do it in script level, then you can find the frequency.

ashwanin
Specialist
Specialist

add the below script

inline:

LOAD * INLINE [

    name, age, 

    sri, 25

    ram, 10

    ganesh, 20

    vamsi, 12

    venkat, 18

    valli, 15

    satish, 30

    rajesh, 28

    dharam, 27

    dhana, 19

    sunny, 20

    yashu, 6

];

load *,

Dual(Replace(Class(age,10),'<= x <','to'), Num(Class(age,10))) as Bucket

resident inline;

QVW Attached

vvvvvvizard
Partner - Specialist
Partner - Specialist

Good day , attached is the qvw app solved

ganeshreddy
Creator III
Creator III
Author

Hi Aron ,

FYI i just want to archive bucket frequency. Problem solved, please see marked correct answer.

Cheers,

Ganesh

morganaaron
Specialist
Specialist

No worries - may be worth stating that next time as that's a different problem to the one you posted!

Cheers

ganeshreddy
Creator III
Creator III
Author

Thank you Ashwin, i got my desired result. but my doubt is still unclear. why show frequency is grayed out while using list box as expression. 

Cheers,

Ganesh

ashwanin
Specialist
Specialist

Hi Ganesh,

This might be due to Calculated values. When get values through expression in List box, it always greyed the frequency.

Also You can also use this formula in script

class(age,10,'age',10) as Bucket