Forum Discussion
pnopbi
3 years agoFrequent Visitor
Display a List Field as RAW JSON text field
Hello, I've read quite a bit of unhelpful posts on this, much appreciate your help here: Have a List field in Power Query and would like to instead of Expand/Extract, simply display this as plain...
- Anonymous3 years ago
Hi pnopbi - Can you please try the following combination of functions Json.FromValue and Text.FromBinary? Note it might be easier to add a new column than transforming the existing.
let Source = #table( type table[column=list] , {{null}, {{"a", "b", "c"}}}), #"Added Custom" = Table.AddColumn(Source, "Custom", each try Lines.ToText( [column] ) otherwise null ), #"Added Custom1" = Table.AddColumn(#"Added Custom", "Custom.1", each Text.FromBinary( Json.FromValue( [column] ) )) in #"Added Custom1"
Anonymous
3 years agoNot applicable
Hi pnopbi - Can you please try the following combination of functions Json.FromValue and Text.FromBinary? Note it might be easier to add a new column than transforming the existing.
let
Source = #table( type table[column=list] , {{null}, {{"a", "b", "c"}}}),
#"Added Custom" = Table.AddColumn(Source, "Custom", each try Lines.ToText( [column] ) otherwise null ),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Custom.1", each Text.FromBinary( Json.FromValue( [column] ) ))
in
#"Added Custom1"
pnopbi
3 years agoFrequent Visitor
OKAY
this worked!!! thank you SO MUCH Anonymous 😊