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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
vish123
Creator III
Creator III

How to count a unique rows after splitting a field into multiple rows based on delimiter ',' when there is no primary key

Hi Team,

I have to split my rows into multiple rows based on delimiter ",". I need to count all the unique rows in this table. Normally if i have primary key i can do that by "count(distinct Primary key)" but i don't have any primary key in my data. In this case how to count the unique rows ?

Labels (1)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

You can always create a primary key in your Load statement, e.g.

Load 
RecNo() as Key,
...
From .... ;

View solution in original post

2 Replies
hic
Former Employee
Former Employee

You can always create a primary key in your Load statement, e.g.

Load 
RecNo() as Key,
...
From .... ;

vish123
Creator III
Creator III
Author

Thank you Henric.

Worked for me..Thanks for your help.