> For the complete documentation index, see [llms.txt](https://help.pangocdp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pangocdp.com/user-guide/module-cdp/segment-builder/include-exclude.md).

# Include - Exclude

Tài liệu cung cấp thông tin về cách dùng Include & Exclude trong Segment Builder trên hệ thống PangoCDP.

## Include/Exclude dùng để làm gì ?

Include/Exclude dùng để thêm vào/loại bỏ một tệp segment khác với segment hiện tại.

Ví dụ: Có tệp segment A những khách hàng đã nhận tin nhắn ngày 10/5/2024 & tệp khách hàng B đã có đơn hàng 10/5/2024&#x20;

* A Include B >> Segment A sẽ bao gồm có khách hàng của tệp A & B.
* A Exclude B >> Segment A sẽ chỉ còn những khách hàng trong tệp A và không có trong tệp B.

## Thao tác thực hiện&#x20;

* Vào module [CDP](https://cdp.mydatalakes.com/)
* Chọn Segment Builder
* Chọn Actions/Build the segment data with various criteria

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXcZjY3xF266agPR2i7j-NkXWL8eE8IeznYOp33LkBBdQYuAKX0jfHsBSCeLU9XDwTbsiWcE9YSJTV1jfN6lZUy4sgA4qSZPCClXKyBh5jIhGhFQLn4IeNWTOm3uSHMF2wgO5DPO8LAWSeQFoqu-sgF44KYw?key=lu24dZvdsQttIYng0K6CvA" alt=""><figcaption></figcaption></figure>

* Chọn Include/Exclude segment

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXe0VRGG5tMGHBnxsVIBRVmLttuRNKvrqDyk1dVqk0Sq0kavqw6CxRIc7Ahy6TMtiTay-jP6E8InQLjjUvlSaDJbuxcXNgaq5V55x9oKHHU-tnCXTJBBKKE-FCG8tRSkO0bW04VrUO4gzobXuNDGxUCHI23Y?key=lu24dZvdsQttIYng0K6CvA" alt=""><figcaption></figcaption></figure>

* Chọn segment&#x20;

{% hint style="info" %}
Lưu ý:&#x20;

Khi click chọn “Required re-run data before including/excluding” >> mỗi lần segment được chọn Calculate thì segment include sẽ được tính toán lại.

Đối với “All segment” khi exclude thì tất cả các segment ở trạng thái Publish và có cùng loại data sẽ được exclude

{% endhint %}

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXe_fuJ-8MW3cpDEvh23KvwbamgRGntmNjQcmamg49nrLUK9yxOPJIGUCcUEp0QvpQFjDjaAVebtib27OFlQFXpUTUSCaiTXM0fkRcHXNlRED4aTidgzd77JsOGRqLvhfZMc3rD7UvVC_pm4PQK6Ul41QlmO?key=lu24dZvdsQttIYng0K6CvA" alt=""><figcaption><p>INCLUDE</p></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXcsV9jNJc8gtg7w5ykGFtvHbYHs4wPqRD4Gq2_MRfFpwGfM1pqRlD-evo4h8ScKIy-TygEe-rtIMCtnfBkkQ42D-VKuo9ioajwrWGP8kptkGz74orW4tB8mWoeV_z4fvf94K3jQ4hBWAaIYFWcu_jy2lFvK?key=lu24dZvdsQttIYng0K6CvA" alt=""><figcaption><p>EXCLUDE</p></figcaption></figure>
