# Xero: Profit And Loss Report

## Description

* Each record represents a P\&L line item at the month and account level.

## Supported Data Sources

* <img src="https://fivetran.com/integrations/xero/resources/xero.svg" alt="" data-size="line"> Xero

## Columns

| Type    | Name                  | Description                                                                                                                                                                                                                                                                                                     |
| ------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| STRING  | profit\_and\_loss\_id | Unique identifier for each record in the profit and loss report model.                                                                                                                                                                                                                                          |
| DATE    | date\_month           | The month of activity.                                                                                                                                                                                                                                                                                          |
| STRING  | account\_id           | The ID of the related account in Xero.                                                                                                                                                                                                                                                                          |
| STRING  | account\_name         | The name of the related account in Xero.                                                                                                                                                                                                                                                                        |
| INTEGER | account\_code         | The code of the related account in Xero.                                                                                                                                                                                                                                                                        |
| STRING  | account\_type         | The type of the related account in Xero.                                                                                                                                                                                                                                                                        |
| STRING  | account\_class        | The class of account, e.g. ASSET, EQUITY, EXPENSE, LIABILITY, REVENUE                                                                                                                                                                                                                                           |
| STRING  | source\_relation      | The source where this data was pulled from. If you are making use of the `union_schemas` variable, this will be the source schema. If you are making use of the `union_databases` variable, this will be the source database. If you are not unioining together multiple sources, this will be an empty string. |
| DECIMAL | net\_amount           | The net movement amount.                                                                                                                                                                                                                                                                                        |


---

# 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://endash-guidance-docs.gitbook.io/cigro-data-templates/data-model-templates/xero-profit-and-loss-report.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.
