Skip to content

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. Ask the Defthand team for a database user with access to forms, for example rpt_zeynep.
  2. Reports → Connections → New connection:
    • Name: Fleet reports
    • Database user: rpt_zeynep
    • Password: the password you were given
  3. Save. “The connection is saved and ready.” The card shows Ready.

Details: Connections.

  1. Reports → Datasets → Generate from a form.
  2. Connection: Fleet reports · Form: Vehicle Check Form · Name: Vehicle checks
  3. Generate. “Dataset generated from the form.”
  4. In the dataset that opens:
    • General → Cache time (seconds): 3600.
    • Measures: enter “Check count” as the Display label of the ready submissions measure.
    • 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.
  5. Save.

Details: Generating a dataset from a form, Datasets.

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.

  1. Reports → Dashboards → New dashboard. Name: Monthly vehicle checks · Description: “Daily check summary of the fleet vehicles.” → Create.
  2. Dashboard details → Auto refresh (seconds): empty (off).
  3. 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.
  4. Save.

Details: Dashboards.

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.

  1. Audience → Employee groups: “Fleet supervisors”. Units, locations, collar → Org units: “Logistics”.
  2. Save audience.
  3. Check the dashboard through a viewer’s eyes with View (“Draft: only you see this view.”).
  4. 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.

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.