Dashboard Stats
Dashboard stats allow you to display the summed value of number fields and display time elapsed details of date & time fields from a Status Board on the Dashboard.
🔑 ACCESS LEVEL: Account Owner
⚠️ ATTENTION: As this only works with number fields you must first have a number field on your status board template.
Total Numbers
- Go to the Admin Area
- Expand Templates
- Click the Edit icon on the status board you wish to edit
- Scroll to the bottom of the page and click +Advanced Options
- Click Add next to Dashboard stats
- In this article's example to display the summed value for both Shelter Capacity and Shelter Occupancy on the dashboard you must obtain the field IDs for both of the number fields
- Click the ⋮ more options menu icon and copy the Field ID, you can also click on the double paper icon to copy
- The field IDs for Shelter Capacity is shelter_capacity and the field name for Shelter Occupancy is current_occupancy
- To sum the total number for Shelter Capacity and display it on the dashboard, enter the following in Value expression:
- {{items | map:'data.shelter_capacity' | add}}
- Click Add
- To sum the total number for Shelter Occupancy and display it on the dashboard, enter the following in Value expression:
- {{items | map:'data.current_occupancy' | add}}
- This is what it should look like in your account. Whatever you enter in the Label box will appear as the label on the dashboard
- Click Save
Time Last Reported
- Go to the Admin Area
- Expand Templates
- Click the Edit icon on the status board you wish to edit
- Scroll to the bottom of the page and click +Advanced Options
- Click Add next to Dashboard stats
- In this article's example to display the time elapsed for Road Closures Last Reported Time on the dashboard you must obtain the field IDs for both of the number fields
- Click the ⋮ more options menu icon and copy the Field ID, you can also click on the double paper icon to copy
- The field ID for Time Reported is time_reported
- To display the number of minutes elapsed since the last Road Damage was reported, enter the following in Value expression:
- Last Reported: {{items | pick:'data.time_reported != null' | max:'data.time_reported' | getProp:'data.time_reported' | minutesSince}} mins ago
- Click Add
- This is what it should look like in your account. Whatever you enter in the Label box will appear as the label on the dashboard
- Click Save