Expand my Community achievements bar.

Join us for the Adobe Campaign Community Q&A Coffee Break on 30th September at 8 am PT with Campaign experts Arthur Lacroix and Sandra Hausmann.
SOLVED

group by email

Avatar

Level 3

Hi

 

I am trying to find all recipients with same emails ( I have lot of duplicate..) with different consent type.

 

ex:

emailconsent yype
recipient@domain.com   opt out
recipient@domain.com   opt out
recipient@domain.com   opt in

 

And what I need to get is how many emails i have in my database with same email but different consent log

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @rbiri,

Query:

Fetch all recipients, Filter as, Primary key is not empty. 

Complementary information:

Add data > Data linked to the filtering dimension > Data of the filtring dimension >

Add:

@email

@consentTypeAttribute

count(@consentTypeAttribute)

Select 'Group' checkbox for email and consentTypeAttribute alone

ParthaSarathy_0-1697603908703.png

In Advanced parameter, check 'Disable automatic adding of PK'

ParthaSarathy_1-1697603945227.png

Now you will be getting the count

ParthaSarathy_2-1697604015294.png

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @rbiri,

Query:

Fetch all recipients, Filter as, Primary key is not empty. 

Complementary information:

Add data > Data linked to the filtering dimension > Data of the filtring dimension >

Add:

@email

@consentTypeAttribute

count(@consentTypeAttribute)

Select 'Group' checkbox for email and consentTypeAttribute alone

ParthaSarathy_0-1697603908703.png

In Advanced parameter, check 'Disable automatic adding of PK'

ParthaSarathy_1-1697603945227.png

Now you will be getting the count

ParthaSarathy_2-1697604015294.png