Skip to content
Stand with Ukraine flag

Data Filtering

Drag any field into the Filter section of a view to restrict which data points are included. Filters can be applied to fields that are not shown in the visualization — for example, filter out empty apartments by floor number without adding floor number as a chart axis. All active filters are combined with AND logic — a data point must satisfy every filter to be included. If no data matches, the view displays an empty state.

Any field present in ThingsBoard can be used as a filter:

Field typeExamples
Asset / Device nameFilter to a specific device or asset by name
Asset / Device labelFilter by the label assigned in ThingsBoard
Asset / Device ownerFilter by the customer the entity belongs to
AttributeAny server-side, shared, or client-side attribute
TelemetryAny time-series telemetry key

The available conditions depend on the field’s data type:

Data typeAvailable conditions
TextAny, One of, Not one of, Starts with, Ends with, Contains, Does not contain
NumericAny, One of, Not one of, Greater than, Greater or equals, Less than, Less or equals
BooleanAny, One of, Not one of
DateHour, Day, Date, Month — see Filter by date

The condition controls what input appears in the filter dialog:

ConditionInput
AnyNo value required — passes all data
One of, Not one ofPick one or more values from a list
Starts with, Ends with, Contains, Does not containEnter a text string (case-sensitive)
Greater than, Greater or equals, Less than, Less or equalsEnter a number

For Boolean fields, One of / Not one of shows true and false as the selectable options. Click the filter field to open its configuration dialog and choose the required condition.

When assets or devices are connected by relations, you can filter by a parent entity to scope the view to its children only.

Example: Buildings contain Apartments. Dropping Building name into the Filter section and selecting a specific building limits the view to apartments from that building only.

The same logic applies to customer ownership — dropping the Owner field filters all entities to those belonging to the selected customer.

The date filter restricts which telemetry data points are included based on a repeating calendar dimension. It works alongside the overall time range — for example, a 90-day time range combined with a weekdays-only date filter returns weekday data from the last 90 days.

Date dimensionFilters byValues
HourHour of the day0–23
DayDay of the weekMon–Sun
DateDay of the month1–31
MonthMonth of the yearJan–Dec

Example — weekdays only:

Add a Date field to the Filters section, open its dialog, set the dimension to Day, and select Monday through Friday. The view will include only data points that fall on weekdays, regardless of the selected time range.

Filter values can be driven by a ThingsBoard dashboard alias or widget filter instead of a static value set in the view configuration. This lets a single Trendz view update automatically when a user selects an entity on the dashboard. See Filter by Dashboard Alias for setup instructions.