# Generating a report using the report builder

{% hint style="info" %}
Reports can only be generated via the Tablion report builder by a Tablion Administrator.
{% endhint %}

The Tablion report builder can be used by Tablion Administrators to retrieve data and statistics from their system. Once generated, this report can be exported as a spreadsheet directly to Microsoft Excel.

### How to generate a report using Tablion report builder

1. Log into Tablion, and select your profile from the header.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2Fs6xCpJGkFAObOKXT6Uzs%2Fimage.png?alt=media&#x26;token=67b0887d-fef2-4cae-98f9-e48408dc395f" alt=""><figcaption></figcaption></figure>

2. Select 'Admin tools'.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FQpYPleX69gqyNUPIEgbW%2Fimage.png?alt=media&#x26;token=66dd03af-7ae3-4dd1-9150-31a9a0f3c186" alt=""><figcaption></figcaption></figure>

3. Select 'Report Builder'.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FlhwNVuujM67GN7IcX32q%2Fimage.png?alt=media&#x26;token=f2e7a5ee-6866-433b-ba04-357b81192831" alt=""><figcaption></figcaption></figure>

4. Select 'Create New Report'.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FDYzBaymS23DajrrS3GVY%2Fimage.png?alt=media&#x26;token=7db0080d-d625-49dc-a194-fc4b829d4209" alt=""><figcaption></figcaption></figure>

5. Populate the 'Title' and 'Description' fields as desired.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2F1mZEnhU6QNn4m8PSFI1n%2Fimage.png?alt=media&#x26;token=bdd7d537-3289-4f13-98a5-1edc7df015b7" alt=""><figcaption></figcaption></figure>

6. Select the data type you would like to use as the basis for the report form the 'Initial object' dropdown.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2Ftd7LvUx7M8sGka9FlJoK%2Fimage.png?alt=media&#x26;token=0bf621ee-df4c-411e-a51f-19df04b9ecfa" alt=""><figcaption></figcaption></figure>

7. Populate the 'Columns' field with any object fields possessed by the initial object you selected that you wish to be included as columns of the final report. Entries in this field must be separated by pipes ('|'), with any subfields specified via the 'main.sub' formula (see below).

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FZKdXJd41uExHFC9iMPUQ%2Fimage.png?alt=media&#x26;token=184a4215-a690-4edd-874d-85df1582bcd4" alt=""><figcaption></figcaption></figure>

**Note: If you wish to rename a report column**, an alias can be set for a field via the 'alias:=field' formula, for example 'Published:=created'.

8. Populate the 'Filters' field with any of the following filters to refine the data in the final report via the exclusion of non-filtered fields:

| Filter      | Description                          | Example                                    |
| ----------- | ------------------------------------ | ------------------------------------------ |
| =           | Equal to                             | *field* = approved                         |
| < >         | Not equal to                         | *field* < > unapproved                     |
| <           | Less than                            | *field* < 30                               |
| >           | Greater than                         | *field* > 30                               |
| <=          | Less than or equal to                | *field* <= 2024-01-01                      |
| >=          | Greater than or equal to             | *field* >= 2024-01-01                      |
| \&contains  | Contains exact matching text         | *field* \&contains Frederick               |
| \&icontains | Contains matching test in any case   | *field* \&icontains frederick              |
| in          | Value is in a list (comma separated) | *field* in approved, unapproved, frederick |

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2F1DN8uS5F638ifplDXifr%2Fimage.png?alt=media&#x26;token=422c23c1-0f88-44a4-aff7-9cd6fa04a444" alt=""><figcaption></figcaption></figure>

**Note:** Not all filters work with all data types/fields.

9. Populate the 'Order by' field with fields you wish results to be sorted by, separated by pipes ('|').

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FHbfrubDkfORptSbRN3AZ%2Fimage.png?alt=media&#x26;token=25f13b32-18a8-4d18-8350-0b03efad6cbe" alt=""><figcaption></figcaption></figure>

**Note: If you wish to sort a field in reverse order**, add a minus sign ('-') to the beginning of the field name, e.g. '-created'.

10. Select from the 'Allowed users' field the users that should be able to access this report.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FFkeH613LD4RpIvi8ByM4%2Fimage.png?alt=media&#x26;token=c81b0291-3b2b-4a6a-b556-94811e7ee8e8" alt=""><figcaption></figcaption></figure>

**Note:** Hold Ctrl when selecting users to select multiple users at once

11. Select one of the following options from the 'Status' dropdown based on your requirements:
    * 'Restricted view': This option will make the report only visible to its creator and other administrators
    * 'Shared view': This option will make the report visible to its creator, other administrators and any users selected in the 'Allowed users' field above.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FropQmCCfEwmGyAkrJbSJ%2Fimage.png?alt=media&#x26;token=b9c543e2-8e71-43b3-813f-ad34fe186cde" alt=""><figcaption></figcaption></figure>

12. Select 'Preview' if you wish to see a preview of how the report will look using its current settings. Once satisfied, select 'Save report'.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FOrNbcIxK55TgPKqbMw1p%2Fimage.png?alt=media&#x26;token=2ba424f7-9fa7-40c5-a650-1268587eecef" alt=""><figcaption></figcaption></figure>

**Note:** Once the report has been saved, you can export the report as a CSV file from the preview (below):

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FKvxaaAhlaNNW0ZKlBrkX%2Fimage.png?alt=media&#x26;token=cd917be8-e0c9-42bf-9433-f4da4d369794" alt=""><figcaption></figcaption></figure>

13. Once saved, your report will appear in the 'Report Builder' tab of 'Admin tools'. From here you can, select:
    * The report's title to view it
    * 'Edit Report' to reopen the editor used to create the report initially and make changes
    * 'Delete Report' to remove the report from the 'Report Builder' tab.

<figure><img src="https://683603551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPeaKzA2mZwMc13WvgBV9%2Fuploads%2FXOf8xmfkDeRESyfp1gqC%2Fimage.png?alt=media&#x26;token=8b090f75-0f65-4beb-b098-c8f6498e16b1" alt=""><figcaption></figcaption></figure>

**Note:** The report's initial object cannot be changed once the report is saved.
