# HubSpot: Can I filter a goal on X object by Y object fields?

Unfortunately no, you can't filter goals by fields that are built on a different object. This means you won’t be able to apply relational filters across objects when working with goals inside of HockeyStack.

To work around this limitation, you’ll need to adjust your filtering logic to rely on fields available directly within the goal object. Explore alternative filtering methods to surface the correct data without using cross-object relationships.


---

# 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/hubspot-can-i-filter-a-goal-on-x-object-by-y-object-fields.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.
