<?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 Split Text into rows using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658615#M141758</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="38415" data-lia-user-login="power" class="lia-mention lia-mention-user"&gt;power&lt;/a&gt; BI expert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to split into rows using DAX instead of using Power Query due to performance (the data is too large). For info, previously i was using Power Query but I'm keep getting error messages saying about performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my sample data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is some calculation that i need to do once names splitted into rows. Really need anyone help to achieve this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 04:06:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-25T04:06:17Z</dc:date>
    <item>
      <title>Split Text into rows using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658615#M141758</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="38415" data-lia-user-login="power" class="lia-mention lia-mention-user"&gt;power&lt;/a&gt; BI expert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to split into rows using DAX instead of using Power Query due to performance (the data is too large). For info, previously i was using Power Query but I'm keep getting error messages saying about performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my sample data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is some calculation that i need to do once names splitted into rows. Really need anyone help to achieve this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 04:06:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658615#M141758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-25T04:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text into rows using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658674#M141760</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but in my opinion, doing this operation in Power Query Editor is still one of the most preferable way to do it. However, if you only have one option to do this operation which is by DAX, please check the below picture and the attached pbix file whether it suits your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected result table = 
VAR _t =
    ADDCOLUMNS (
        Data,
        "@separator", SUBSTITUTE ( Data[List of Students], ",", "|" )
    )
VAR _one =
    ADDCOLUMNS ( _t, "@1", PATHITEM ( [@separator], 1 ) )
VAR _two =
    ADDCOLUMNS ( _t, "@2", PATHITEM ( [@separator], 2 ) )
VAR _three =
    ADDCOLUMNS ( _t, "@3", PATHITEM ( [@separator], 3 ) )
VAR _four =
    ADDCOLUMNS ( _t, "@4", PATHITEM ( [@separator], 4 ) )
RETURN
    FILTER (
        SELECTCOLUMNS (
            UNION ( _one, _two, _three, _four ),
            "@ClassName", Data[Class Name],
            "@StudentName", [@1]
        ),
        [@StudentName] &amp;lt;&amp;gt; BLANK ()
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Jan 2024 05:01:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658674#M141760</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-01-25T05:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text into rows using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658704#M141761</link>
      <description>&lt;P&gt;Thank you so much for this&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;. This is what I wanted. But I have question, based on below syntax i understand that it is based on number of text but what if we dont know how long will be the values? for example in future it might have more than 4? should i just assume it will go up to 20 then I have to set it to var _20 to ensure it will pickup and all values will be splitted accordingly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;VAR _one =
    ADDCOLUMNS ( _t, "@1", PATHITEM ( [@separator], 1 ) )
VAR _two =
    ADDCOLUMNS ( _t, "@2", PATHITEM ( [@separator], 2 ) )
VAR _three =
    ADDCOLUMNS ( _t, "@3", PATHITEM ( [@separator], 3 ) )
VAR _four =
    ADDCOLUMNS ( _t, "@4", PATHITEM ( [@separator], 4 ) )&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 05:12:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658704#M141761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-25T05:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text into rows using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658769#M141766</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message.&lt;/P&gt;
&lt;P&gt;Please check the below and the attached file whether it suits your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table V2 = 
VAR _gt =
    GENERATESERIES ( 1, 100, 1 )
VAR _t =
    ADDCOLUMNS (
        Data,
        "@separator", SUBSTITUTE ( Data[List of Students], ",", "|" )
    )
VAR _generatetable =
    GENERATE ( _gt, ADDCOLUMNS ( _t, "@Name", PATHITEM ( [@separator], [Value] ) ) )
RETURN
    FILTER (
        SELECTCOLUMNS (
            _generatetable,
            "@ClassName", Data[Class Name],
            "@StudentName", [@Name]
        ),
        [@StudentName] &amp;lt;&amp;gt; BLANK ()
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Jan 2024 05:32:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658769#M141766</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-01-25T05:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text into rows using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658797#M141768</link>
      <description>&lt;P&gt;Thank you so much for your help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 05:40:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-into-rows-using-DAX/m-p/3658797#M141768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-25T05:40:21Z</dc:date>
    </item>
  </channel>
</rss>

