# Quickbooks: Profit And Loss

## Description

* Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information.

## Supported Data Sources

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

## Columns

| Type    | Name                    | Description                                                                                                                                                                                                                                                                                          |
| ------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DATE    | calendar\_date          | Timestamp of the first calendar date of the month.                                                                                                                                                                                                                                                   |
| STRING  | source\_relation        | The source of the record if the unioning functionality is being used. If not this field will be null.                                                                                                                                                                                                |
| STRING  | account\_class          | Class of the account associated with the profit and loss line.                                                                                                                                                                                                                                       |
| STRING  | class\_id               | Reference to the class associated with the record.                                                                                                                                                                                                                                                   |
| BOOLEAN | is\_sub\_account        | Boolean indicating whether the account is a sub account (true) or a parent account (false).                                                                                                                                                                                                          |
| STRING  | parent\_account\_number | The parent account number. If the account is the parent account then the account number is recorded.                                                                                                                                                                                                 |
| STRING  | parent\_account\_name   | The parent account name. If the account is the parent account then the account name is recorded.                                                                                                                                                                                                     |
| STRING  | account\_type           | The type of account associated with the profit and loss line.                                                                                                                                                                                                                                        |
| STRING  | account\_sub\_type      | Sub type of the account associated with the profit and loss line.                                                                                                                                                                                                                                    |
| STRING  | account\_number         | User defined number of the account.                                                                                                                                                                                                                                                                  |
| STRING  | account\_id             | The identifier of the account associated with the record.                                                                                                                                                                                                                                            |
| STRING  | account\_name           | Name of the account associated with the profit and loss line.                                                                                                                                                                                                                                        |
| DECIMAL | amount                  | The total period net change for the period.                                                                                                                                                                                                                                                          |
| INTEGER | account\_ordinal        | Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models) |


---

# 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/quickbooks-profit-and-loss.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.
