<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Extracting data from JSON format column in power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Extracting-data-from-JSON-format-column-in-power-BI/m-p/3201921#M42340</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;@Anonymous,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Here is the expanded table from the sample JSON string with custom query steps, you can try it if suitable for your requirement.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 701px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/905516i3E960B8AA17B5F3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Full query:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 02:24:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-24T02:24:04Z</dc:date>
    <item>
      <title>Extracting data from JSON format column in power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Extracting-data-from-JSON-format-column-in-power-BI/m-p/3199318#M42322</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a json format column in my table , in that whole rows are in the form of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"v":[{"v":{"f":[{"v":"en"},{"v":" Sales are high this week"}]}},{"v":{"f":[{"v":"it"},{"v":sales are at peak range""}]}}]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to extract &lt;STRONG&gt;Sales are high this week&lt;/STRONG&gt; from above json format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 04:50:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Extracting-data-from-JSON-format-column-in-power-BI/m-p/3199318#M42322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-21T04:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from JSON format column in power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Extracting-data-from-JSON-format-column-in-power-BI/m-p/3201921#M42340</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;@Anonymous,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Here is the expanded table from the sample JSON string with custom query steps, you can try it if suitable for your requirement.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 701px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/905516i3E960B8AA17B5F3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Full query:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 02:24:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Extracting-data-from-JSON-format-column-in-power-BI/m-p/3201921#M42340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-24T02:24:04Z</dc:date>
    </item>
  </channel>
</rss>

