Skip to main content

Power BI

New

Dataflows data types parity with Power Query

Vote (93) Share
Daniil Daniil's profile image

Daniil Daniil on 13 Dec 2018 11:21:02

Dataflows should have parity with Power Query when it comes to data types.

Currently, dates are converted to datetime and fixed decimal numbers are converted to decimal numbers. Time does not work at all.

I haven't tested all other data types, so I don't know if these three types (date, time, fixed decimal number) are all we need.

Comments (7)
Daniil Daniil's profile image Profile Picture

21dfe265 7ed2-468a-bdb8-1d0117b965e5 on 06 Jul 2020 00:17:46

RE: Dataflows data types parity with Power Query

Trying to connect MS Project Online to CDS and the datatype duration is converted into a number, with no known recourse to my knowledge. This is a definite impediment across the entire power platform.

Daniil Daniil's profile image Profile Picture

7c27f276 d2f4-43fa-bd6b-62e3bd40e36a on 06 Jul 2020 00:04:55

RE: Dataflows data types parity with Power Query

Additionally there is a problem with the display of Whole Numbers. They have a data type of Int64.Type, and they are stored internally correctly, but they are displayed rounded as if they are doubles (i.e. to 15 significant figures), as can be seen by the following which uses the maximum permissible value of an Int64:

let
Source = Table.FromRecords({[LargeInteger = 9223372036854775807]}, {"LargeInteger"}),
ToInteger = Table.TransformColumnTypes(Source,{{"LargeInteger", Int64.Type}}),
ToText = Table.TransformColumnTypes(ToInteger,{{"LargeInteger", type text}})
in
ToText

The "ToInteger" and "ToText" steps show different values when used in Power BI dataflows.

Daniil Daniil's profile image Profile Picture

1b28b54b 024b-4c82-82bd-7190c11cff3c on 05 Jul 2020 23:58:18

RE: Dataflows data types parity with Power Query

I was trying to develop a dataflow that returns a table with columns containing records or lists. You need to convert these complex types to text by encoding them. This is way too cumbersome.

Daniil Daniil's profile image Profile Picture

b63102fc edd4-41e8-beae-94bad2936baa on 05 Jul 2020 23:44:43

RE: Dataflows data types parity with Power Query

Much needed, especially date is needed. After referencing a entity in another dataflow or in pbi desktop it converts back to datetime..

Daniil Daniil's profile image Profile Picture

ee73f4be e51c-4ebe-89c6-c2c1baeed53f on 05 Jul 2020 23:39:31

RE: Dataflows data types parity with Power Query

'@Anonymous the data type parity issue is not fixed, as far as I'm aware. So you get DateTime instead of Date at the moment.

What I referred to on the Issues website was the locale issue: there were errors when using US/Rest of the world date formats (MDY vs DMY). Here is the link for anyone curious: https://community.powerbi.com/t5/Issues/Dataflows-sets-data-types-incorrectly/idi-p/575824

Daniil Daniil's profile image Profile Picture

d39912d5 c46c-43f9-8e11-d0bbbee3dd7e on 05 Jul 2020 23:39:25

RE: Dataflows data types parity with Power Query

'@Danill, it seems I'm still experiencing the wrong Date type issue - a field appears to be correct Date type field in Data Flow, however, when loaded the data flow into PBI Desktop, such filed becomes DateTime field (12:00:00.00 is automatically added).

I read through your previous post regarding to this issue and the status was "fixed".

Daniil Daniil's profile image Profile Picture

ee73f4be e51c-4ebe-89c6-c2c1baeed53f on 05 Jul 2020 23:39:22

RE: Dataflows data types parity with Power Query

Time has since been partially fixed -- now it is converted to DateTime.