# Building a Campaign / Asset Grouping property

It is quite useful to create groupings out of your more granular touchpoint properties. For example, you might want to group your campaigns by Region, Theme, Objective. Or you might want to group your website pages by their specific Product Area or Target Audience.

To start, create a new defined property.

Use the existing Campaign or Asset properties to build up the groupings.

**Example:**

<figure><img src="/files/tuLxJSiKWdQAbZMvwXea" alt=""><figcaption></figcaption></figure>

Optionally, **after all of the mappings,** you could add a catch-all mapping that says "Campaign is not empty -> map to Ungrouped". It is important that this mapping is at the very end. Because the Defined Property is executed from top to bottom, if you add this catch-all in the middle, it will mess up the grouping of all the mappings that come after it.

<figure><img src="/files/uWyRF56yERJN4TVevP5i" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hockeystack.com/marketing-intelligence/report-examples-and-insights/building-a-campaign-asset-grouping-property.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
