Master Data Import and Export
Time series master data can be read to or from Excel by pressing the buttons “Export” respectively “Import”. This eases editing of time series master data as well as creating time series.
You can open the Plug-in via the button from the "Administration" ribbon:
It is possible to select "PowerTSM Database" and/or "WebTSM Services" as the data source, depending on the configuration.
Time Series Master Data Export
Clicking the "Export" button will open the Time Series Search window where you can search the time series that are to be exported. For reading time series master data to Excel, select the desired time series in the spread sheet and press “OK” in the “Add selection to application” field.
Http connections can also be specified as the data source in order to be able to export time series from these.
Time Series Master Data Import
Time series master data can be imported from currently active Excel sheets. Therefore it is required that the format in the Excel sheet to be imported corresponds to the format used for the export.
Time Series Master Data – Table Fields
The fields from this table are mandatory for a master data import. When it comes to attributes additional fields have to be used. These are shown and explained in the template, which can be opened by clicking on "Import template with data examples".
Field | Mandatory | Description | Possible Values | Example |
---|---|---|---|---|
ObjectID | Only if the definition of a existing time series is edited | Unique ID of the specific time series master data set. | ||
Name | yes | Unique name of a time series | ||
Description | Description of the time series | |||
Unit | yes | The unit of the time series | ||
Type | yes | The type of the time data |
| |
Interval | yes | Time resolution |
| |
Interval length | yes | Length of an interval | ||
Formula | Formula to calculate a time series' data | You can find examples of formulas under Formula Time Series | ||
Table | The data table for the time series | |||
Archive table | The archive data table for the time series | |||
TimeZone | Name of the time zone. Besides the time zones supported by Microsoft, there are several time zones defined by HAKOM. | For a list of time zones supported by Microsoft, see https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values. A list of HAKOM specific time zones can be found under Reading Data into Excel | W. Europe Standard Time | |
StartOfYear | Value by which the interval is shifted (in months). | 1-12 | ||
StartOfDay | Value by which the interval is shifted (in hours from midnight on). | 0-23 | ||
PreserveDuplicatedValues | Defines whether identical consecutive values are stored (TRUE) or not (FALSE) in spontaneous time series when saving. |
| ||
Aggregation | Determines which method is used to aggregate time series data. |
| ||
QuotationDefaultBehavior | Defines the standard behavior when reading quotation time series if no quotation date has been set. If a value is entered here, it overrules the one set in the HAKOM.Config. |
|
When time series master data is imported, the TSM differentiates between entries which have already existed in the data base and have just been edited (after an export) or if new entries shall be created in the data base.
Import of New Time Series Master Data
When importing new data, the ObjectID has to stay empty and the Name is not already existent in the data base.
In order to import time series into an http connection data source, the import template only differs in the data source area. In the case of an http connection, the ID of the data source and the repository must be specified in field B2. It is also important to successfully log in to the WebTSM service before importing. This can be done via the "Master Data Import/Export" plug-in ("Sign in" button with correctly selected data source).
Example:
In the HAKOM.Config there is an HttpConnection with the Id "WebTSMService". The WebTSM service configured here has a repository "TSM". To import time series here, the import file must contain "WebTSMService/TSM" in field B2 (next to "Data source").
Re-Import of Time Series Master Data After Editing
After a “Time Series Master Data Export” like described above, the time series categories which have been read to Excel can be edited.
Changes can be read from Excel and saved to the data base by clicking the button “Import”.
If data is re-imported from Excel (existing data in the data base is updated) the ObjectID has to stay the same and shall not be edited (For more information see: Time series Master Data).
Time Series Administration
Additional settings can be made for the import of time series master data:
Add categories
If this checkbox is active, attributes of type "category" will be saved to the database, if they have not already existed.Note: This will work for attributes of type "category" only! All other types attributes that are to be assigned via master data import must already be saved on the database!
- Ignore blank attribute entries
This option is selected by default. It means, that time series, that do not have an entry in the column of an attribute will not be assigned this attribute.
In the example above "Doc_TS_1" would be assigned "An_attribute", "Doc_TS_2" would not. Both of them would be assigned "A_category". - Import also blank attribute entries
If this option is selected, time series, will also be assigned attributes, when the relevant column is empty.
In the example above both time series would be assigned "An_attribute", but only "Doc_TS_1" would have a value for it. - Delete blank attribute entries
If this option is selected, the time series will be unassigned their attributes, if the relevant column is empty.
In the example above this would mean, that "Doc_TS_2" would loose "An_attribute".
Export and Import of Attributes
Similar to the time series import and export, attributes can be imported to and exported from all data sources using a template via the "Master Data Import/Export" plug-in.
Export
The "Export" button exports all attributes from the data source and repository selected above to an spreadsheet.
Import
The "Import" button imports all attributes from the currently active sheet into the data source specified in the sheet.
An example of the import template can be generated via "Import template with data examples".
Data Source:
The data source into which the attributes are to be imported.
For database connections, only the repository needs to be specified here.
For http connections, the HttpConnection Id and the repository must be specified here in the following format: HttpConnectionId/Repository.
ID:
Optional field. If an attribute is to be renamed, the reference to the attribute to be renamed can be specified via the ID. This field must remain empty for new attributes.
Name:
This field can either be used to specify the name of the new attribute or, if an attribute with this name already exists, it will be updated.
Description:
A description can be assigned to the attribute via "Description".
Type:
The type of attribute is defined here. The following types are supported:
- Boolean
- Category
- DateTime
- List
- MSCONSID
- Node
- Numeric
- Text
- MultilineText
- TimeSeries
- TimeSpan