<?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: Build Order Summary using CONCATENATEX? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-Order-Summary-using-CONCATENATEX/m-p/2991016#M100635</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;to the rescue again!&amp;nbsp; Thanks so much.&amp;nbsp; The second one with the Summarize is what I needed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DeptListMeasure = CONCATENATEX( Summarize('Orders','Department'[DepartmentDesc]),[DepartmentDesc] ,",")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 03:06:34 GMT</pubDate>
    <dc:creator>Karl-D</dc:creator>
    <dc:date>2022-12-28T03:06:34Z</dc:date>
    <item>
      <title>Build Order Summary using CONCATENATEX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-Order-Summary-using-CONCATENATEX/m-p/2990990#M100627</link>
      <description>&lt;P&gt;I have an "Orders" table which shows order lines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not have an Order Header table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each [OrderNumber] may have multiple rows in the "Orders" table, representing different items from different departments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Orders" is related to "Department" on a DepartmentKey with a many to 1 relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I can create a visual that looks as follows.&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Orders[OrderNumber] | Department[DepartmentDesc]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;00001 | dept1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;00001 | dept2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;00001 | dept3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;00002 | dept2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;00002 | dept3&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;How can I create a measure such that each order only appears once and the results look as follows?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Orders[OrderNumber] | DeptListMeasure&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;00001 | dept1,dept2,dept3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;00002 | dept2,dept3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried experimenting with CONCATENATEX but if I create the following measure in my Orders table, it shows every possible department after each order instead of only the departments that are part of each order.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DeptListMeasure = CONCATENATEX(RELATEDTABLE('Department'),'Department'[DepartmentDesc],",")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 02:44:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-Order-Summary-using-CONCATENATEX/m-p/2990990#M100627</guid>
      <dc:creator>Karl-D</dc:creator>
      <dc:date>2022-12-28T02:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Build Order Summary using CONCATENATEX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-Order-Summary-using-CONCATENATEX/m-p/2991003#M100630</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="470155" data-lia-user-login="Karl-D" class="lia-mention lia-mention-user"&gt;Karl-D&lt;/a&gt; , if tables are already joined , try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DeptListMeasure = CONCATENATEX(values('Department'),'Department'[DepartmentDesc],",")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DeptListMeasure = CONCATENATEX( Summarize('Orders','Department'[DepartmentDesc]),[DepartmentDesc] ,",")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 02:52:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-Order-Summary-using-CONCATENATEX/m-p/2991003#M100630</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-28T02:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Build Order Summary using CONCATENATEX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-Order-Summary-using-CONCATENATEX/m-p/2991016#M100635</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;to the rescue again!&amp;nbsp; Thanks so much.&amp;nbsp; The second one with the Summarize is what I needed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DeptListMeasure = CONCATENATEX( Summarize('Orders','Department'[DepartmentDesc]),[DepartmentDesc] ,",")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 03:06:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-Order-Summary-using-CONCATENATEX/m-p/2991016#M100635</guid>
      <dc:creator>Karl-D</dc:creator>
      <dc:date>2022-12-28T03:06:34Z</dc:date>
    </item>
  </channel>
</rss>

