We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b41894c commit b676d12Copy full SHA for b676d12
1 file changed
source/Xml/Table.AutoExpandTableColumn.pq
@@ -0,0 +1,13 @@
1
+
2
+// Someone asked for a way to auto expand xml columns
3
+// hard coded example filter
4
+Table.AutoExpandTableColumn = (source as table, columnName as text ) =>
5
+ let
6
+ allNames = Table.ColumnNames( source ),
7
+ filteredNames = List.Select( allNames, (item) =>
8
+ not Text.StartsWith( item, "http://", Comparer.OrdinalIgnoreCase ) ),
9
10
+ prefixedNames = List.Transform( filteredNames, each expandColumnName & "." & _ ),
11
+ return = Table.ExpandTableColumn( source, columnName, allNames, filteredNames )
12
+ in
13
+ return
0 commit comments