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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nigel987
Creator II
Creator II

Check if value exists within group

Hi,

I have several IDs and Date. Whenever the same Date occurs more than once within a group, I'd like to set the field Bulk as 'Yes', else 'No'.

Any idea which formula I can use? With peek I always miss the first entry.

Here's an example how the result should look like:

 

IDDateBulk
115.10.2017Yes
115.10.2017Yes
116.10.2017Yes
116.10.2017Yes
120.10.2017No
215.10.2017No
216.10.2017Yes
216.10.2017Yes
220.10.2017No

Thanks for any hint!

1 Solution

Accepted Solutions
sunny_talwar

May be this:

Left Join (Table)

LOAD ID,

           Date,

          If(Count(Date) >= 2, 'Yes', 'No') as Bulk

Resident Table

Group By ID, Date;

View solution in original post

2 Replies
sunny_talwar

May be this:

Left Join (Table)

LOAD ID,

           Date,

          If(Count(Date) >= 2, 'Yes', 'No') as Bulk

Resident Table

Group By ID, Date;

nigel987
Creator II
Creator II
Author

Thanks!