# \[Advanced] Dimension Path

When your database has complicated joining paths between tables and each joining path gives you a different result with different need, you can change to the needed path on Presight.

You can check the sample schema below:

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FfAObEGyv4sfQHNsjWd5b%2Fimage.png?alt=media&#x26;token=acec0c39-234c-415a-9775-a8873905aaa2" alt=""><figcaption><p>Example for many dimension paths</p></figcaption></figure>

In the example, if you need to breakdown Invoice Amount by city, which path you want it to breakdown? City through Customer table or City through Seller table. Presight allows you to choose the needed one. If you want to see if the amount coming from which Seller City, choose the path going through Seller table, if you want to check how much from Customer City, choose the path going through Customer table.

### How to use

#### Case 1: when there are more than one path with the same table numbers to go through

When there are more than one path with the same table numbers to go through, a pop up will appear to ask which path you want to use. Then just choose the one you need and click <mark style="color:blue;">**Select Dimension**</mark>

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2F3eMcva035DJITovtjVgA%2Fpath.gif?alt=media&#x26;token=9ce3db12-1ab4-4a02-bfba-a0da05b7f454" alt=""><figcaption></figcaption></figure>

#### Case 2: when the dimension path is automatically choosen by Presight, the pop-up does not show up.

Most of the time, Presight will automatically choose the shortest path for you when breaking down a metric. However, you can choose another path based on your certain needs. Then, you can right click on the dimension name, and choose <mark style="color:blue;">**Change to a different \[Dimension name]**</mark>.

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FNPVeiR3RQ153P1R098Ks%2Fimage.png?alt=media&#x26;token=bfb67077-f172-449b-9b88-5ff6c252ddae" alt=""><figcaption></figcaption></figure>

A dimension path list will pop up and allow you to choose to another one.

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FMAh9xF8JZgNujS3FtxgP%2Fimage.png?alt=media&#x26;token=4df0df3e-0fb2-4a63-9bf4-c0df3ff8c4ad" alt="" width="453"><figcaption></figcaption></figure>

### Preferred Path

You can set a preferred path to be the default each time you break down a dimension by ticking on "**Set this as Preferred Path from Orders to Customers**".

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FIwN8lfscEpAaFqAsqCQU%2Fimage.png?alt=media&#x26;token=24f06d4b-12e6-434a-91c3-9053dd38d1fa" alt=""><figcaption></figcaption></figure>

Some dimension paths are complicated, going through many tables. Setting Preferred Path can help your team members quickly breakdown to the correct dimension path.


---

# 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://presight.gitbook.io/presight-v1.0/analysis/breakdowns-and-filters/advanced-dimension-path.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.
