Example: monthly vehicle check dashboard
In this example Anadolu Gıda’s fleet team fills in the “Vehicle Check Form” every day. The logistics manager, Zeynep Demir, builds a dashboard to follow the checks month by month and spot tyre problems, and opens it to the fleet supervisors. Every step is done without writing SQL.
The form’s fields: Plate (text), Vehicle type (choice: Truck, Van, Car), Mileage (number), Tyres OK (yes/no), Check date (date), Notes (long text).
1. Add the connection
Section titled “1. Add the connection”- Ask the Defthand team for a database user with access to forms, for example
rpt_zeynep. - Reports → Connections → New connection:
- Name: Fleet reports
- Database user:
rpt_zeynep - Password: the password you were given
- Save. “The connection is saved and ready.” The card shows Ready.
Details: Connections.
2. Generate a dataset from the form
Section titled “2. Generate a dataset from the form”- Reports → Datasets → Generate from a form.
- Connection: Fleet reports · Form: Vehicle Check Form · Name: Vehicle checks
- Generate. “Dataset generated from the form.”
- In the dataset that opens:
- General → Cache time (seconds): 3600.
- Measures: enter “Check count” as the Display label of the ready
submissionsmeasure. - Add measure: Measure name
ortalama_km, Display label “Average mileage”, Aggregate Average, Column Mileage. - Add measure: Measure name
arac_sayisi, Display label “Vehicle count”, Aggregate Count distinct, Column Plate.
- Save.
Details: Generating a dataset from a form, Datasets.
3. Draw the charts
Section titled “3. Draw the charts”On the dataset page, build four charts with Create chart:
| Name | Type | Dimensions | Measures | Other |
|---|---|---|---|---|
| Checks this month | Big number with trend | Check date, Time grain Month | Saved: Check count · submissions | — |
| Checks by month | Bar | Check date (Month); Vehicle type | Saved: Check count · submissions | Stack the series on |
| Vehicles checked | Big number | — | Saved: Vehicle count · arac_sayisi | — |
| Vehicles with tyre problems | Table | Plate; Vehicle type | An aggregate for this chart: Count | Filters: Tyres OK Equals No · Sort by: the measure, Descending · Row limit 20 |
For each chart, check the Live preview and click Save.
Details: Chart builder, Chart types.
4. Build the dashboard
Section titled “4. Build the dashboard”- Reports → Dashboards → New dashboard. Name: Monthly vehicle checks · Description: “Daily check summary of the fleet vehicles.” → Create.
- Dashboard details → Auto refresh (seconds): empty (off).
- Layout:
- Add text box: “Vehicle checks — data is updated hourly.” Width 12.
- Add chart: Checks this month (width 6) and Vehicles checked (width 6) side by side.
- Add chart: Checks by month, width 12.
- Add chart: Vehicles with tyre problems, width 12.
- Save.
Details: Dashboards.
5. Add filters
Section titled “5. Add filters”Dashboard filters → Add dashboard filter twice:
| Key | Label | Column | Condition | Default |
|---|---|---|---|---|
tarih |
Check date | Check date | Between | empty |
arac_tipi |
Vehicle type | Vehicle type | Is one of | empty |
Save. The filters apply to all four charts, because they all come from the same dataset.
Details: Dashboard filters.
6. Choose the audience and publish
Section titled “6. Choose the audience and publish”- Audience → Employee groups: “Fleet supervisors”. Units, locations, collar → Org units: “Logistics”.
- Save audience.
- Check the dashboard through a viewer’s eyes with View (“Draft: only you see this view.”).
- Publish… → in the dialog, read that the disclosed dataset is “Vehicle checks” and how many people it reaches → Confirm and publish.
Details: Audience and publishing.
7. A fleet supervisor opens the dashboard
Section titled “7. A fleet supervisor opens the dashboard”The fleet supervisor Hasan Yıldız sees the “Monthly vehicle checks” card under Reports → My dashboards. He opens the dashboard, chooses This month for Check date and “Truck” for Vehicle type, and clicks Apply. He sees the trucks with tyre problems in the table and downloads the list with Download CSV in the Table view.
Details: My dashboards.