> For the complete documentation index, see [llms.txt](https://docs.phocassoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.phocassoftware.com/rebates/rebates-analysis.md). Agents can also search and read this documentation through its [MCP server](https://docs.phocassoftware.com/~gitbook/mcp).

# Rebates analysis

Analyze your rebate data in Analytics or Analytics (Classic).

You can open the Rebates Analysis database in [Analytics](https://docs.phocassoftware.com/analytics/analytics.md) or [Analytics (Classic)](https://docs.phocassoftware.com/analytics-classic/readme.md).

{% embed url="<https://phocassoftware.wistia.com/medias/kwtpy9xg72>" %}
Rebates analysis
{% endembed %}

If you have access to this database, open it from **Analytics** or **Analytics (Classic)** in the Phocas menu. You might also have rebates dashboards, accessible from **Dashboards**. See [Navigation](https://docs.phocassoftware.com/basics/getting-started/navigation.md) for help finding items in the new and Classic experiences, and [Dashboards (Classic)](https://docs.phocassoftware.com/basics/dashboards/dashboards-classic.md) for help with dashboards from the original experience.

The Rebates Analysis database is built from rebates-specific data streams (Posted and Unposted Transactions) and measures, such as Total Rebate, Percentage, Fixed, and so on. Here’s an example of what the database design might look like to an administrator:

<div align="left"><figure><img src="https://content.gitbook.com/content/MbR0klD6u5c0D9XeXtY3/blobs/tOhwVhlmlvivKXNogur2/3520856620.png" alt="image-20240530-223144.png" width="698"><figcaption></figcaption></figure></div>

When you open the database in either Analytics experience, you can view your rebates by various categories (dimensions), such as Customer, Region, and Bracket. In the following Analytics (Classic) example, you can see all the different brackets from your rebate rules, the total amount of rebate in each one, and the rebate amounts being paid out each month.

<div align="left"><figure><img src="https://content.gitbook.com/content/MbR0klD6u5c0D9XeXtY3/blobs/kW82qt9DvEokRJGvCfiF/3521642514.png" alt="image-20240530-223416.png" width="738"><figcaption></figcaption></figure></div>

Use the Rebates Analysis database to analyze the total rebate amount and the breakdown. For example, in the case of Payable rebates, you can see how much you’re paying out overall and how much you’re going to pay each customer.

***

### Analysis limitations <a href="#rebatesanalysis-analysislimitations" id="rebatesanalysis-analysislimitations"></a>

A common misconception is that the Rebates Analysis database can be used to analyze the profitability of rebates at a Customer level. This isn't possible because the database is based on your rebates data, not your sales data. So, although the database contains measures like Value and Profit Margins, they're only accurate at the *rebate* level because they are taken from the rebate calculations.

For example, suppose you’re analyzing your Sales database in the Analytics (Classic) module and see a $125 sales transaction for a customer in March.

<div align="left"><figure><img src="https://content.gitbook.com/content/MbR0klD6u5c0D9XeXtY3/blobs/i9RroqfULFAGa1kfhQkB/3522592776.png" alt="image-20240531-015458.png" width="795"><figcaption></figcaption></figure></div>

In the Rebates module, you have two rebate rules for that customer based on sales. When you run the calculations for those rules in that period, the $125 transaction is copied into each one. This results in a sales total of $250 ($125 x 2). This is the sum of the transactions used in the calculations. It might not be the actual sales total.

<div align="left"><figure><img src="https://content.gitbook.com/content/MbR0klD6u5c0D9XeXtY3/blobs/rhinWcJv23fpkfvRDk0B/3522134048.png" alt="image-20240531-015729.png" width="369"><figcaption></figcaption></figure></div>

So, in the Rebates Analysis database, if you analyze the data by Customer or another dimension, the sales value you see is not the same as the sales value in your Sales database. Instead, you see the sales value that has been processed to calculate the two rebates. This is how the Rebates Analysis database is designed to work. To analyze customer profitability, use the Sales database.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.phocassoftware.com/rebates/rebates-analysis.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
