Segment Builder: Add to form a group | Community
Skip to main content
Level 3
February 13, 2025
Solved

Segment Builder: Add to form a group

  • February 13, 2025
  • 2 replies
  • 722 views

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. 

 

Best answer by Harveer_SinghGi1

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!

2 replies

Level 5
February 13, 2025

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! 

Harveer_SinghGi1
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 14, 2025

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!

rntrpAuthor
Level 3
February 14, 2025

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

Harveer_SinghGi1
Community Advisor and Adobe Champion
Harveer_SinghGi1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 14, 2025

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!