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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

HELP - Need Count() Group By

Hi,

I need help...

I have internal (qv) tables

(by this command:

tabA:

load ID, surname, name Resident tab1;

tabB:

load ID,knr Resident tab8;)

tabA:

surname / name / ID

Dred / Michal / 1

Vrb / Martin/ 2

tabB:

ID / knr

1 / 6421385

1 / 8655642

2 / 3621586

1 / 7846587

and now need table now, where will be count knr per person, so:

tabX:

surname / name / ID / Count()

Dred / Michal / 1 / 3

Vrb / Martin / 2 / 1

Any idea what type to script for this new tabX?

When I typed "load ID, Count(knr)  ...." system writes in column number 4 (real Count(knr), but bad in my case).

Help ...

Labels (1)
1 Reply
Not applicable
Author

this command resolved it:

tab9:

load distinct ID,Count(knr) as count Resident tab Group By ID;

and then leftjoin table with surname, name, ID.