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: 
Not applicable

getting duplicates when using count(if

Hi All

When I have a set of data where there is a create date and a ticket number.  Then I created a master calendar so I can create a bar chart where the dimension is the month name of the master calendar. 

When I use count(if(month_master = mont_create, id)) i'm getting duplicate information and my count is wrong.  However, when I use count(distinct(if (month_master = mont_create, id))), the count is correct.

I verified my data doesn't have duplicates by doing a count(id) and count(distinct(id)).

When I created a simple test file, it seems to work also.  I'm at a lost how I can continue to troushoot this error.

At this time, I'm unable to upload the .qvw file.

Any help is appreciated.

Labels (1)
1 Reply
Not applicable
Author

After writing the post, I realized that I had duplicates in my master calendar months