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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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