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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
k_holt69
Contributor III
Contributor III

Iterate through field and count records

Hi All

I need to iterate/count how many time a record is returned in a loaded table eg. I need this to then create a Key field. Tried a view options without any luck. Any suggestions?

 

User Count
kh1 1
kh1 2
kh1 3
kh2 1
kh3 1
kh3 2
kh4 1

 

Thanks

Labels (3)
1 Solution

Accepted Solutions
Kushal_Chawda

@k_holt69  try this

Load *, 
     AutoNumber(RecNo(),User) as Count
FROM Table;

View solution in original post

3 Replies
Kushal_Chawda

@k_holt69  try this

Load *, 
     AutoNumber(RecNo(),User) as Count
FROM Table;
p_verkooijen
Partner - Specialist II
Partner - Specialist II

@k_holt69 you mention a Key field, could you elaborate?

 

k_holt69
Contributor III
Contributor III
Author

Thanks - Just what I need 🙂