Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
Can you share some sample data with expected output?
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.
Program | ID |
Program 1 | A |
Program 1 | B |
Program 1 | A |
Program 1 | |
Program 1 | A |
Program 1 | C |
Did not get you? Is your total distinct count should be 3 or 4?
Try this in your expr to get 3.
= count({< ID = {"=Len(Trim(ID)) <>0"} >} DISTINCT ID)