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: 
mahishah
Contributor
Contributor

How to check if count of distinct values >1 in Data Load Editor

Hello, I am trying to load a resident table in qlik sense data load editor 
How do I check if count of distinct values is more than one in a group by. 

For example, by doing group by in col A i want to see how many distinct entries are there in col B 

Capture.PNG

Labels (4)
3 Replies
Or
MVP
MVP

Load A, Count(Distinct B) as C

From SourceTable

Group By A;

mahishah
Contributor
Contributor
Author

I am using a resident table not a source connection. 

Count(Distinct B) is throwing a syntax error 

thanks 

sandeep-singh
Creator II
Creator II

Hi @mahishah, the code shared by @Or is completely correct. If you don't want to use SourceTable then you change the path to use resident table. 

Sample code and output for your reference.

Abc:
Load * inline [
A,B
3456,TRUE
4567,FALSE
2905,TRUE
2905,FALSE
9856,FALSE
1298,TRUE
5674,FALSE
5674,FALSE

];

Output:
Load A, Count(DISTINCT B) as C
Resident Abc
Group By A;

drop table Abc;

sandeepsingh_0-1681789611640.png