Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
pnopbi
Frequent 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 JSON text as in the second image. Is it possible? (Data is imported from CSV files from a folder.)

Thanks!

 

pnopbi_0-1674240951538.pngpnopbi_1-1674240981610.png

 

 

1 ACCEPTED SOLUTION
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

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"

 

View solution in original post

2 REPLIES 2
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

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"

 

OKAY

this worked!!! thank you SO MUCH @Daryl-Lynch-Bzy 😊

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors