Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Set Analysis help

Hi all,

i need some help with set analysis syntax, it should be straight forward but i cant seem to get it to work.

i am trying to count an ID field but i only want to count the ID's where 2 other fields match.

count(distinct Contact_ID)

where campaignID=contactcampaignID

these 2 fields are in different tables

Can anyone help please?

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

This should do it:

=Count(Distinct If(campaignID=contactcampaignID, Contact_ID)

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

5 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

This should do it:

=Count(Distinct If(campaignID=contactcampaignID, Contact_ID)

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
PrashantSangle

Hi,

missing closing bracket.

=Count(Distinct If(campaignID=contactcampaignID, Contact_ID))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

bracket missing from the end but it works thanks!

jonathandienst
Partner - Champion III
Partner - Champion III

No syntax check in the post editor

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
PrashantSangle

Heheheeee

Got a bug

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂