# Order Profit Statistics

Calculate the total profit amount for each year based on order data.

## Sample Data

![](/files/MQGxLKkbQIEcYwTd4Nal)

## Prompt

> Help me calculate from the order table, how much profit each Customer made in 2014, 2015, and 2016 respectively.

## Excel Cursor Response

![](/files/lS0VJnefJ5kz1jRu3xv4)

## Result

![](/files/lBT0pKy17znrEQCcVsSU)


---

# 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.coffbox.com/usage-examples/order-profit-statistics.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.
