Power BI Connector for ServiceNow
Breadcrumbs

Export Duration Data Type Overview

Starting from Power BI Connector version 1.5.19 new option “Duration in seconds” was added as a setting for data source.

The option appears only when added table contains at least one field of Duration type, unchecked by default:

pbi_connector_for_SN_by_tempo_-_ export_duration_data_type_1.gif

Also, the option appears automatically for data sources created from Report or from Template or from Database View, only if they contain Duration type fields. Below is an example of data source created from report:

pbi_connector_for_SN_by_tempo_-_ export_duration_data_type_2.gif

In case, the added table does not contain Duration type fields, but one or more Referenced fields of this type are added - an option will appear too:

pbi_connector_for_SN_by_tempo_-_ export_duration_data_type_3.gif

What data format to choose for export

  1. By default, when Duration fields are added and no “Duration in seconds” or “Use display value” are turn on, data will be exported in Edm.Duration format:

pbi_connector_for_SN_by_tempo_-_ export_duration_data_type_4.gif

NOTE: please take into account that PBI represents Edm.duration in its own way, so the original view is different from what you can see on the Preview dialog:

pbi_connector_for_SN_by_tempo_-_ export_duration_data_type_5.gif
  1. When “Duration in seconds” is turned, data will be exported in Decimal format (seconds):

sn_duration_in_seconds.gif
  1. When “Use display value” is turned on, data will be exported in Edm.String:

pbi_connector_for_SN_by_tempo_-_ export_duration_data_type_6.gif

NOTE: please take into account that String format for Display value can be also seen in the backend part:

2023-10-26_14-06-53.jpg

Restriction

It is impossible to apply both “Duration in seconds” and “Use display value” at once. They are mutually exclusive options. It means, that in case if “Duration in seconds” is turned on “Use display value” is turned off:

sn_duration_in_seconds+display_value.gif