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.
Solved! Go to Solution.
Views
Replies
Total Likes
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!
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!
Views
Replies
Total Likes
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!
Views
Replies
Total Likes
Thanks. I am specifically asking about the Add to form a group. How different is that from using nested containers?
Views
Replies
Total Likes
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!