Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 JSON text as in the second image. Is it possible? (Data is imported from CSV files from a folder.)
Thanks!
Solved! Go to Solution.
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"
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"