<?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 NEW Column to join values by comma in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/DAX-NEW-Column-to-join-values-by-comma/m-p/2969367#M40311</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this code to create a calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Combine by PK =
CONCATENATEX (
    FILTER ( 'Table', 'Table'[PK] = EARLIER ( 'Table'[PK] ) ),
    [Value],
    ","
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1671070477424.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/841166i7ECCED0C26EA70BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1671070477424.png" alt="RicoZhou_0-1671070477424.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 02:14:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-15T02:14:54Z</dc:date>
    <item>
      <title>DAX NEW Column to join values by comma</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-NEW-Column-to-join-values-by-comma/m-p/2968836#M40309</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with the following format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PK1, Value1&lt;/P&gt;&lt;P&gt;PK1, Value2&lt;/P&gt;&lt;P&gt;PK2, Value1&lt;/P&gt;&lt;P&gt;PK2, Value3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to create in DAX a column with all the distict values separated by comma that are assoiated with the pk?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PK1, Value1, "Value1,Value2"&lt;/P&gt;&lt;P&gt;PK1, Value2, "Value1,Value2"&lt;/P&gt;&lt;P&gt;PK2, Value1, "Value1,Value3"&lt;/P&gt;&lt;P&gt;PK2, Value3, "Value1,Value3"&lt;/P&gt;&lt;P&gt;PK3, Value4, "Value4"&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 19:27:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-NEW-Column-to-join-values-by-comma/m-p/2968836#M40309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-14T19:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX NEW Column to join values by comma</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-NEW-Column-to-join-values-by-comma/m-p/2969367#M40311</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this code to create a calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Combine by PK =
CONCATENATEX (
    FILTER ( 'Table', 'Table'[PK] = EARLIER ( 'Table'[PK] ) ),
    [Value],
    ","
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1671070477424.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/841166i7ECCED0C26EA70BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1671070477424.png" alt="RicoZhou_0-1671070477424.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 02:14:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-NEW-Column-to-join-values-by-comma/m-p/2969367#M40311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-15T02:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX NEW Column to join values by comma</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-NEW-Column-to-join-values-by-comma/m-p/2970646#M40321</link>
      <description>&lt;P&gt;thank you, it works&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 11:37:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-NEW-Column-to-join-values-by-comma/m-p/2970646#M40321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-15T11:37:34Z</dc:date>
    </item>
  </channel>
</rss>

