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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Number of identical records in one column

Hello!

I am just learning and can't unserstand one thing:
Can create in LOAD a calculated field - that would count all occurrences in a column of values.
I read about count function but as i understood it works when table could be groupped by one column. In my table I have a field ID and i just need to have a value of occurrences in one field.

For example: how can i create third field of occurrences like i do in excel?

I would be very grateful if someone can help me with it.

1 Solution

Accepted Solutions
devarasu07
Master II
Master II

Table:

LOAD * Inline [

    id,Word

    1,nsd

    2,ppr

    3,nsd

    4,It

    5,ppr

    6,nsd

    7,pcd

    8,It

];

Join(Table)

LOAD Word,

  Count(Word) as Count

Resident Table

Group By Word;

Capture.JPG

View solution in original post

2 Replies
devarasu07
Master II
Master II

Table:

LOAD * Inline [

    id,Word

    1,nsd

    2,ppr

    3,nsd

    4,It

    5,ppr

    6,nsd

    7,pcd

    8,It

];

Join(Table)

LOAD Word,

  Count(Word) as Count

Resident Table

Group By Word;

Capture.JPG

Anonymous
Not applicable
Author

Thank you! It works.