<?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: DAX to read text and add to another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-read-text-and-add-to-another-table/m-p/3725392#M145110</link>
    <description>&lt;P&gt;No need to torture DAX for that. Power Query is much better at parsing JSON.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = #table({"Row"},{{"[{""questionId"":""r9cbd0bd3150d487e928d96309fe028b7"",""response"":""No""},{""questionId"":""r400d164cd32348a8aa9d01c1700597c0"",""response"":""Yes""}]"},{"[{""questionId"":""r5d4f85ce74844463808afc2131214600 "",""response"":""No""}]"}}),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each Json.Document([Row])),
    #"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom"),
    #"Expanded Custom1" = Table.ExpandRecordColumn(#"Expanded Custom", "Custom", {"questionId", "response"}, {"questionId", "response"})
in
    #"Expanded Custom1"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done". Once you examined the code, replace the Source step with your own source.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 01:03:49 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-02-27T01:03:49Z</dc:date>
    <item>
      <title>DAX to read text and add to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-read-text-and-add-to-another-table/m-p/3724619#M145051</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table where a data is available and the text is basically in one column as shown below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the screenshot there are 8 rows in table ("Inputdata") and in column Z the below text is availalable per row&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;ROW 1 data -&amp;gt; "[{""questionId"":""r9cbd0bd3150d487e928d96309fe028b7"",""response"":""No""},{""questionId"":""r400d164cd32348a8aa9d01c1700597c0"",""response"":""Yes""}]"&lt;BR /&gt;ROW 2 data -&amp;gt; "[{""questionId"":""r5d4f85ce74844463808afc2131214600 "",""response"":""No""}]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, here is the problem to solve&lt;/P&gt;&lt;P&gt;I need to take one row and breakdown the text and insert into rows into another table "DataSet"&lt;/P&gt;&lt;P&gt;So the final table will have 3 columns&lt;/P&gt;&lt;P&gt;QuestionID, Response, Inserteddate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row level data is&amp;nbsp;&lt;/P&gt;&lt;P&gt;r9cbd0bd3150d487e928d96309fe028b7 ; NO ; datetime()&lt;/P&gt;&lt;P&gt;r400d164cd32348a8aa9d01c1700597c0 ; YES ; datetime()&lt;/P&gt;&lt;P&gt;r5d4f85ce74844463808afc2131214600 ; ABC ; datetime()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hits on how address this beast &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 16:57:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-read-text-and-add-to-another-table/m-p/3724619#M145051</guid>
      <dc:creator>NVNR_01Reddy</dc:creator>
      <dc:date>2024-02-26T16:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to read text and add to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-read-text-and-add-to-another-table/m-p/3725392#M145110</link>
      <description>&lt;P&gt;No need to torture DAX for that. Power Query is much better at parsing JSON.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = #table({"Row"},{{"[{""questionId"":""r9cbd0bd3150d487e928d96309fe028b7"",""response"":""No""},{""questionId"":""r400d164cd32348a8aa9d01c1700597c0"",""response"":""Yes""}]"},{"[{""questionId"":""r5d4f85ce74844463808afc2131214600 "",""response"":""No""}]"}}),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each Json.Document([Row])),
    #"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom"),
    #"Expanded Custom1" = Table.ExpandRecordColumn(#"Expanded Custom", "Custom", {"questionId", "response"}, {"questionId", "response"})
in
    #"Expanded Custom1"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done". Once you examined the code, replace the Source step with your own source.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 01:03:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-read-text-and-add-to-another-table/m-p/3725392#M145110</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-27T01:03:49Z</dc:date>
    </item>
  </channel>
</rss>

