Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read and how they find the site, so we can improve it (Google Analytics).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
22.5k Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Card

The Card widget displays a single key metric and lets you monitor its trend by comparing it against a reference value or a previous time period.

Playing this video loads it from YouTube (Google), which sets cookies on its own domain. See our Cookie Policy.

Video: https://www.youtube.com/watch?v=ZXORc5nipgg

Drop the field you want to monitor into the Main Value slot and choose an aggregation type (sum, average, last, etc.). The card shows the aggregated result for the current time range.

To show how a metric compares against a target or another measurement, add a second field to the Compared value slot. The card renders the difference between the two figures as a percentage badge — green when the main value is above the compared value, red when it is below.

Example: Compare the number of products actually produced against the required production target stored as device telemetry.

Use Local Date to compare the current period with the immediately preceding one — without building a separate view.

Example: Show how much coffee was consumed this month versus last month.

Time range selector: This Month
┌────────────────┐
Main Value │ 87 kg │
│ ▲ +12% │ ← vs. Prev Month
└────────────────┘
Compared value ──▶ Local Date ON + Prev Month

To configure this:

  1. Add the same field to the Compared value slot.
  2. Enable Local Date for that field.
  3. Set the Compared value time range to Prev Month.
  4. Set the main view time range to This Month.

The card then shows the percentage change between this month and last month.

Open Settings (bottom-right corner of the editor) and enter a name in the Title field to label the card for quick identification on a dashboard.