-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathValues.pq
43 lines (43 loc) · 1.57 KB
/
Values.pq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
let
Source = #table(
type table [
Text = text,
Number = number,
Logical = logical,
Date = date,
Time = time,
DateTime = datetime,
DateTimeZone = datetimezone,
Duration = duration,
Binary = binary,
Null = any,
List = list,
Record = record,
Table = table,
Function = function,
Type = type
],
{
{
, // Text
, // Number
, // Logical
, // Date - (YYYY,MM,DD)
, // Time - (HH, MM, SS)
, // DateTime - (YYYY,MM,DD,HH,MM,SS)
, // DateTimeZone - (YYYY,MM,DD,HH,MM,SS,Offset Hours,Offset Minutes)
, // Duration (D,H,M,S)
, // Binary
, // Null
, // List
, // Record
, // table
, // Function
// Type
}
}
),
#"Transposed Table" = Table.Transpose(Source, {"Values"}),
#"Value Types" = Table.AddColumn(#"Transposed Table", "Type", each Value.Type([Values]))
in
#"Value Types"