> For the complete documentation index, see [llms.txt](https://ofn-user-guide.gitbook.io/ofn-api-handbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ofn-user-guide.gitbook.io/ofn-api-handbook/enterprise-dashboard-for-customers.md).

# Enterprise Dashboard for Customers

This flow generates an enterprise specific dashboard in Google sheets that aggregates useful hub management data on a monthly basis.

<figure><img src="https://2749008000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNv32980j4B1B2UoS6UMi%2Fuploads%2FZ3Pii7P1zbj6IpaEKQI2%2FScreenshot%202023-09-01%20at%2011.37.59.png?alt=media&amp;token=813279cf-7ce8-4013-8307-8d29cfaa2744" alt=""><figcaption><p>Example dashboard for UK hub</p></figcaption></figure>

###

### Data points include

* Customer counts (new and existing)
* Delivery & collection information (incl. delivery fees, percentage split)
* Producer counts
* Enterprise fees charged
* Comparison to previous month and previous year

{% file src="/files/yPRkaCHGFuhZmLpJtt01" %}

<figure><img src="https://2749008000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNv32980j4B1B2UoS6UMi%2Fuploads%2F2sQt5nmgjFNVZeJUoAEs%2FScreenshot%202023-09-01%20at%2011.23.01.png?alt=media&amp;token=eca09916-b252-4749-8f63-748eb5952ecc" alt=""><figcaption></figcaption></figure>

### How to use

1. Download the linked flow and open in n8n
2. Add your instance specific credentials for Postgres & Google sheets in n8n
3. Make a copy of the [template dashboard](https://docs.google.com/spreadsheets/d/1SNvXFMv7PPYJKBWh8wkfH4L0fd6h9PrGaqKej1ScPi4/edit#gid=341889824) and move it to your own instance's Google drive
4. Edit all Google sheets references in the n8n flow to point to your new dashboard location
5. Remove the test data rows from the 'Monthly Breakdown' and 'Enterprise Turnover' sheets.&#x20;
6. Add the required enterprise ID in the 'choose enterprise' node
7. Run the flow to generate all time data
8. After all time data has been generated, go to the highlighted Postgres nodes and remove the two dashes ('--') in front of the lines of code ('date\_trunc('month',completed\_at\[...]') that restrict the data to last month:
9.

```
<figure><img src="/files/LUI9h2plZizMaNPJdb0n" alt=""><figcaption></figcaption></figure>
```

10. Once you've done this for every highlighted node, you can set the schedule node to your requirements (best practice is early in the morning on the first day of the mont&#x68;*,* i.e. 2am).&#x20;
11. Set to 'active' and the dashboard will now automatically update each month with the previous month's data
