Expand my Community achievements bar.

SOLVED

Segment Builder: Add to form a group

Avatar

Level 2

I have a question regarding the Segment Builder canvas within AEP. I am talking about the Build Rule option, not the Audience Composition canvas.

What does the 'Add to form a group' do? In other words, how different is it from using a 'and' condition? Couldn't not find an answer for this in the user guide. 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I guess there is no difference creating a logic group simply let's you automatically do two action together; adding a container and then adding an attribute within that container, as compared to adding container manually and then moving attributes to it one by one.

Once the logic group is created it provides the same options (delete, unwrap) as normal container.

Cheers!

View solution in original post

4 Replies

Avatar

Level 4

If you are building a sequential logic in audience, you will drag and drop the attributes in the screen to build your logic. However, there will be cases when you need to make a complex logic. In terms of sql, there will be times when you want to incorporate say group by, having, sub-queries etc on top of join, where. 'Form a group' could be thought of a sub-query.

In terms of pql: take the below example:

Include First name equals ss and ((Lastname equals abc or (latestPurchaseDate occurs today)))

 

In the above sample the highlighted part has been constructed as a 'Form a group'. Hope the explanation helps! 

Avatar

Community Advisor

Hi @rntrp ,

These two options are intended for separate uses as below,

Add to form a group: This option let's you to join two attributes using And/Or operators like this,

 

attribute1 exists
AND 
attribute2 exists

 

Add to compare operands: This option let's compare values of two attributes using Equals/Contains/Starts With and other such operators like this,

 

attribute1 EQUALS attribute2
//or
attribute1 CONTAINS attribute2

 

As the name of these options suggest, first option let's create a logic group by joining two attributes which then can be used as a single clause in the segment definition, this is helpful when you need to nest multiple And/Or operators in your definition, if you are only using only one of these operators for your definition then you can work without the logic group. Second option lets you compare the two attributes using multiple operators available.

Cheers!

Avatar

Level 2

Thanks. I am specifically asking about the Add to form a group. How different is that from using nested containers?

Avatar

Correct answer by
Community Advisor

I guess there is no difference creating a logic group simply let's you automatically do two action together; adding a container and then adding an attribute within that container, as compared to adding container manually and then moving attributes to it one by one.

Once the logic group is created it provides the same options (delete, unwrap) as normal container.

Cheers!