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

Numeration of values is in a group

There is a datasheet with two fields: for example country and city. It is necessary to add the third field with the number of city within the country. In other words, it is nesessary to renumber cities on separate countries. My decision of task looks enough difficult, may be I did not notice some quite simple method?



1 Solution

Accepted Solutions
Not applicable
Author

you can use this code in your editscript dialogue


load country,
count(distinct city) as cities
from x.csv group by country;


regards

tauqueer

View solution in original post

1 Reply
Not applicable
Author

you can use this code in your editscript dialogue


load country,
count(distinct city) as cities
from x.csv group by country;


regards

tauqueer