Skip to main content

Excel Add-in

TDengine Excel Add-in is a Microsoft Excel add-in that enables you to retrieve information from TDengine servers directly into worksheets. Combined with Microsoft Excel's calculation, charting, and formatting capabilities, TDengine Excel Add-in provides powerful tools for collecting, monitoring, analyzing, and reporting TDengine data.

Features Overview

1. Single Value Query

1.1 Current Value

Description: Get the latest real-time value of a data point.

ItemDescriptionOperation
Data ItemsAttributes of elements, one or more can be selected1. Enter keywords in the input box to search and select the required data item
2. Click the search icon to open advanced search conditions, fill in and confirm
Output CellThe starting cell in Excel where data will be output1. Click a cell in Excel to auto-bind
2. Manually enter the Excel cell position, e.g., Sheet1!A1
Time PositionConfiguration for the time column in output data1. Do not display time
2. Time at left
3. Time on top (click to switch)
Current Value Example

To view the current value of a Current data point, set the following inputs for the current value function:

InputValue
Data ItemsCurrent
Time at leftSelected

Current function output result:

excel-add-in-current-value

1.2 Archive Value

Description: Get historical data at a specified point in time.

ItemDescriptionOperation
Data ItemsAttributes of elements, one or more can be selected1. Enter keywords in the input box to search and select the required data item
2. Click the search icon to open advanced search conditions, fill in and confirm
Fill TypeQuery interpolation, TDengine fill clause fill type (default previous non-null value)Supported types (dropdown selection):
1. Previous non-null value
2. Fill with custom value
3. Fill with null
4. Linear fill
5. Next non-null value
Fill Custom ValueThe specific value to fillOnly displayed when fill type is selected as "Fill with custom value"
Time StampThe specific time to query dataTime selection box:
1. Yesterday at midnight
2. Today at midnight
3. Current time
Or select a specific point in time
Output CellThe starting cell in Excel where data will be output1. Click a cell in Excel to auto-bind
2. Manually enter the Excel cell position, e.g., Sheet1!A1
Time PositionConfiguration for the time column in output data1. Do not display time
2. Time at left
3. Time on top (click to switch)
Archive Value Example

To view the archive value of a Current data point, set the following inputs for the archive value function:

InputValue
Data ItemsCurrent
Fill TypePrevious non-null value
Time Stamp2026-1-5 00:00:00
Time at leftSelected

Current function output result:

excel-add-in-archive-value

2. Multiple Value Query

2.1 Raw Data

Description: Get the original time series data.

ItemDescriptionOperation
Data ItemsAttributes of elements, one or more can be selected1. Enter keywords in the input box to search and select the required data item
2. Click the search icon to open advanced search conditions, fill in and confirm
Time RangeThe specific time to query dataTime selection box:
1. Yesterday's data
2. Today's data
3. Past one day's data
Or select a specific time range
Output CellThe starting cell in Excel where data will be output1. Click a cell in Excel to auto-bind
2. Manually enter the Excel cell position, e.g., Sheet1!A1
Time PositionConfiguration for the time column in output data1. Do not display time
2. Time at left
3. Time on top (click to switch)
Raw Data Example

To view the raw data value of a Current data point, set the following inputs for the raw data function:

InputValue
Data ItemsCurrent
Time Range2025-12-30 00:00:00 - 2025-12-31 00:00:00
Time at leftSelected

Current function output result:

excel-add-in-raw-data

2.2 Sampled Data

Description: Time series data sampled at fixed intervals.

ItemDescriptionOperation
Data ItemsAttributes of elements, one or more can be selected1. Enter keywords in the input box to search and select the required data item
2. Click the search icon to open advanced search conditions, fill in and confirm
Time IntervalThe time interval for fetching dataDefault value is hour
Filter ExpressionFilter conditions for the dataInput box (attribute names require backticks, e.g., `current` > 5)
Time RangeThe specific time to query dataTime selection box:
1. Yesterday hourly data
2. Today hourly data
3. Last 24 hours data
4. Last week data
5. Current month hourly data
Or select a specific time range
Output CellThe starting cell in Excel where data will be output1. Click a cell in Excel to auto-bind
2. Manually enter the Excel cell position, e.g., Sheet1!A1
Time PositionConfiguration for the time column in output data1. Do not display time
2. Time at left
3. Time on top (click to switch)
Sampled Data Example

To view the sampled data value of a Current data point, set the following inputs for the sampled data function:

InputValue
Data ItemsCurrent
Time Range2025-12-30 00:00:00 - 2025-12-31 00:00:00
Time Interval1h
Time at leftSelected

Current function output result:

excel-add-in-sampled-data

2.3 Timed Data

Description: Get time series data at multiple specified points in time.

ItemDescriptionOperation
Data ItemsAttributes of elements, one or more can be selected1. Enter keywords in the input box to search and select the required data item
2. Click the search icon to open advanced search conditions, fill in and confirm
Fill TypeQuery interpolation, TDengine fill clause fill type (default previous non-null value)Supported types (dropdown selection):
1. Previous non-null value
2. Fill with custom value
3. Fill with null
4. Linear fill
5. Next non-null value
Fill Custom ValueThe specific value to fillOnly displayed when fill type is selected as "Fill with custom value"
Time StampThe specific time to query dataInput box: can enter multiple time points
Output CellThe starting cell in Excel where data will be output1. Click a cell in Excel to auto-bind
2. Manually enter the Excel cell position, e.g., Sheet1!A1
Time PositionConfiguration for the time column in output data1. Do not display time
2. Time at left
3. Time on top (click to switch)
Timed Data Example

To view the timed data value of a Current data point, set the following inputs for the timed data function:

InputValue
Data ItemsCurrent
Fill TypePrevious
Time Stamp2025-12-31 09:00:00, 2025-12-30 08:00:00
Time at leftSelected

Current function output result:

excel-add-in-timed-data

3. Calculation Functions

3.1 Calculated Data

Description: Get time series data processed with TDengine aggregate functions.

ItemDescriptionOperation
Data ItemsAttributes of elements, one or more can be selected1. Enter keywords in the input box to search and select the required data item
2. Click the search icon to open advanced search conditions, fill in and confirm
Time IntervalThe time interval for fetching dataDefault value is hour
Filter ExpressionFilter conditions for the dataInput box (attribute names require backticks, e.g., `current` > 5)
Time RangeThe specific time to query dataTime selection box:
1. Yesterday hourly data
2. Today hourly data
3. Last 24 hours data
4. Last week data
5. Current month hourly data
Or select a specific time range
Aggregate FunctionAggregate processing of dataDropdown select the specific TDengine aggregate function name
Output CellThe starting cell in Excel where data will be output1. Click a cell in Excel to auto-bind
2. Manually enter the Excel cell position, e.g., Sheet1!A1
Time OptionsConfiguration for time options in output dataCheckboxes:
1. Display start time
2. Display end time
3. Display max/min time
Calculated Data Example

To view the calculated data value of a Current data point, set the following inputs for the calculated data function:

InputValue
Data ItemsCurrent
Time Interval1d
Time Stamp2025-12-28 00:00:00-2025-12-31 00:00:00
Aggregate FunctionAVG
Display start time, Display end time, Display max/min timeSelected

Current function output result:

excel-add-in-calculated-data

3.2 Time Filtered

Description: Return the total duration within a specified time range that meets the condition (specified by expression).

ItemDescriptionOperation
Data ItemsAttributes of elements, one or more can be selected1. Enter keywords in the input box to search and select the required data item
2. Click the search icon to open advanced search conditions, fill in and confirm
Time IntervalThe time interval for fetching dataDefault value is hour
ExpressionStart condition START WITH, end condition END WITHInput box (attribute names require backticks, e.g., `current` > 5)
Time RangeThe specific time to query dataTime selection box:
1. Yesterday hourly data
2. Today hourly data
3. Last 24 hours data
4. Last week data
5. Current month hourly data
Or select a specific time range
Time UnitTime unit conversion for outputDefault is seconds, dropdown select
Output CellThe starting cell in Excel where data will be output1. Click a cell in Excel to auto-bind
2. Manually enter the Excel cell position, e.g., Sheet1!A1
Time PositionConfiguration for the time column in output data1. Do not display time
2. Time at left
3. Time on top (click to switch)
Time Filtered Example

To view the time filtered value of a Current data point, set the following inputs for the time filtered function:

InputValue
Data ItemsCurrent
START WITH`Current` > 0
END WITH`Current` < 2
Time Interval1d
Time Range2025-12-28 00:00:00-2025-12-31 00:00:00
Time UnitSeconds
Display start time, Display end timeSelected

Current function output result:

excel-add-in-time-filter

4. Event Analysis

4.1 Explore Events

Description: Return events matching the specified search conditions.

Event Explorer Example

To view events, set the following inputs for the event explorer function:

InputValue
NameVoltage High Warning
Columns to DisplayAll

Current function output result:

excel-add-in-event-explorer

5.1 Attribute Filter

Description: Return attributes matching the specified search conditions.

Attribute Filter Example

To view attribute filters, set the following inputs for the attribute filter function:

InputValue
NameCurrent
Max Results5
Columns to DisplayAll

Current function output result:

excel-add-in-attribute-filter

5.2 Asset Filter

Description: Return elements matching the specified search conditions.

Asset Filter Example

To view assets, set the following inputs for the asset filter function:

InputValue
Root Path/Elements/Utilities/California/Los Angeles County/Los Angeles
Max Results5
Columns to DisplayAll

Current function output result:

excel-add-in-asset-filter

6. Properties

Description: Query the attributes of a specific attribute.

Properties Example

To view the properties of an attribute, set the following inputs for the properties function:

InputValue
Data ItemsCurrent
PropertyDescription

Current function output result:

excel-add-in-properties

7. Update

Description: Trigger data updates in the worksheet.

Operation Buttons:

  • OK: Execute data query and update current add-in data once
  • Apply: Update current add-in data according to the selected refresh frequency
  • Update: Update all data in the Excel workspace

8. Settings

Description: Configure data output to Excel.

ItemDescription
Time FormatTime column format in Excel output. Default YYYY-MM-DD HH:mm:ss
Number FormatNumber column format in Excel output. Format string can be any valid number format code in Excel format window
Max Event Explorer Search ResultsMaximum number of results returned by event explorer
Max Attribute/Asset Filter ResultsMaximum number of results returned by attribute/asset filter
Auto Update - IntervalData refresh frequency when "Apply" function is enabled