Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
WEBINAR April 23, 2025: Iceberg Ahead: The Future of Open Lakehouses - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Distinct counts in Pivots Objects in QlikView

I know how to count only distinct IDs in a pivot but how do I make sure the count does not include blank IDs? I don't want Qlik to count blank ID as a unique ID. Thanks.

4 Replies
vishsaggi
Champion III
Champion III

Can you share some sample data with expected output?

Anonymous
Not applicable
Author

  Suppose I want my pivot to count the number of distinct IDs in Program 1. It should say the distinct count is three (A, B, and C). I don't want it to count the one blank ID also and say the total distinct count is 4.  

ProgramID
Program 1A
Program 1B
Program 1A
Program 1
Program 1A
Program 1C
vishsaggi
Champion III
Champion III

Did not get you? Is your total distinct count should be 3 or 4?

vishsaggi
Champion III
Champion III

Try this in your expr to get 3.

= count({< ID = {"=Len(Trim(ID)) <>0"} >} DISTINCT ID)