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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Extracting data from JSON format column in power BI

Hi all,

 

I have a json format column in my table , in that whole rows are in the form of

 

{"v":[{"v":{"f":[{"v":"en"},{"v":" Sales are high this week"}]}},{"v":{"f":[{"v":"it"},{"v":sales are at peak range""}]}}]}

 

I need to extract Sales are high this week from above json format

 

Please help!

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

Here is the expanded table from the sample JSON string with custom query steps, you can try it if suitable for your requirement.

1.PNGFull query:

let
    Source = Json.Document(File.Contents("C:\Users\xxxxx\Desktop\test.json")),
    #"Converted to Table" = Record.ToTable(Source),
    #"Expanded Value" = Table.ExpandListColumn(#"Converted to Table", "Value"),
    #"Expanded Value1" = Table.ExpandRecordColumn(#"Expanded Value", "Value", {"v"}, {"v"}),
    #"Expanded v" = Table.ExpandRecordColumn(#"Expanded Value1", "v", {"f"}, {"v.f"}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Expanded v", {"Name"}, "Node", "Value"),
    #"Added Custom" = Table.AddColumn(#"Unpivoted Columns", "Custom", each Table.Transpose(Table.FromList(List.Transform([Value],each Record.Field(_,"v"))))),
    #"Expanded Expand" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Column1", "Column2"}, {"Group", "Sales"}),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded Expand",{"Value"})
in
    #"Removed Columns"

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

Here is the expanded table from the sample JSON string with custom query steps, you can try it if suitable for your requirement.

1.PNGFull query:

let
    Source = Json.Document(File.Contents("C:\Users\xxxxx\Desktop\test.json")),
    #"Converted to Table" = Record.ToTable(Source),
    #"Expanded Value" = Table.ExpandListColumn(#"Converted to Table", "Value"),
    #"Expanded Value1" = Table.ExpandRecordColumn(#"Expanded Value", "Value", {"v"}, {"v"}),
    #"Expanded v" = Table.ExpandRecordColumn(#"Expanded Value1", "v", {"f"}, {"v.f"}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Expanded v", {"Name"}, "Node", "Value"),
    #"Added Custom" = Table.AddColumn(#"Unpivoted Columns", "Custom", each Table.Transpose(Table.FromList(List.Transform([Value],each Record.Field(_,"v"))))),
    #"Expanded Expand" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Column1", "Column2"}, {"Group", "Sales"}),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded Expand",{"Value"})
in
    #"Removed Columns"

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.