Reporting
With the Reports module your company builds its own reports. The module reads data from form submissions, the organization, locations, inspections and training. It draws charts from that data and gathers the charts on dashboards. When a dashboard is ready you publish it to your employees, groups or org units, and they see it on the My dashboards page.
Reports is a module sold separately. If it is not on for your company, it does not appear in the menu.
Who uses it
Section titled “Who uses it”- Report authors set up connections and build datasets, charts and dashboards.
- Your company’s admin role holds every reporting permission.
- To let someone else write reports, give them a role with the reporting permissions.
- To open a dashboard to others, the publish permission is needed too.
- Dashboard viewers see the dashboards published to them on the My dashboards page. They need no report-writing permission.
Building blocks
Section titled “Building blocks”A report is made of four layers. Each layer builds on the one before:
| Layer | What | Who sees it |
|---|---|---|
| Connection | The database user, yours alone, that reports read data with. | Only you |
| Dataset | A saved query: which columns, which rows. It can also be generated from a form in one step. | Only you |
| Chart | A table, bar, line, pie or similar visual drawn from a dataset. | Only you |
| Dashboard | A page where charts and text boxes are laid out on a grid. It can carry filters. | The audience you publish it to |
The unit of sharing is the dashboard. Nobody else can see your connections, datasets or charts. Others see only the results of the charts on a dashboard.
Where in the menu
Section titled “Where in the menu”The menu of the Reports app:
| Menu | What you do there |
|---|---|
| My dashboards | View the dashboards published to you and your own published dashboards. |
| Dashboards | Build and publish your own dashboards (draft or published). |
| Charts | List your charts and open the chart builder. |
| Datasets | Edit your saved queries and generate datasets from forms. |
| SQL editor | Write a query, preview it and save it as a dataset. |
| Connections | Add and check your database connections. |
You see each item only if you hold the matching permission. Viewers usually see only My dashboards.
What data can be reported
Section titled “What data can be reported”Report authors read data from the read-only report views Defthand prepares for reporting. Topics:
- forms and form submissions,
- the organization (org units, positions, employees, employee groups),
- locations,
- inspections (scores, findings, actions),
- training.
Which topics your connection reaches is decided when your database user is created. The views show only your company’s rows.
A report from start to finish
Section titled “A report from start to finish”- Get a database user from the Defthand team and add it as a connection.
- Write a query in the SQL editor and save it as a dataset, or generate a dataset from a form.
- Draw charts from the dataset (chart types).
- Lay the charts out on a dashboard and add dashboard filters.
- Choose the audience and publish the dashboard.
- The audience sees the dashboard on the My dashboards page.
A step-by-step example: Example: monthly vehicle check dashboard.