<?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 Agregate rows by family type in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Agregate-rows-by-family-type/m-p/1922294#M41670</link>
    <description>&lt;P&gt;Hello all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following problem: My dataset has a bunch of rows that correspond to each product ordered by a customer, and each product has a family type associated:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NumOrder SKU&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Family type&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Baby&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1245&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Kid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This example represents an order of 2 units, with 2 different family types. The family types that I have are: Baby, Kid, Woman, Men, Men&amp;amp;Acessories; Woman&amp;amp;Acessories, Shoes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a calculated column that if an order has only Baby, display "baby", and so on. But if an order&amp;nbsp; has at least one product that is baby and kid, displays "Baby_Kid" and so on. For all combinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 10:28:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-25T10:28:15Z</dc:date>
    <item>
      <title>Agregate rows by family type</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Agregate-rows-by-family-type/m-p/1922294#M41670</link>
      <description>&lt;P&gt;Hello all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following problem: My dataset has a bunch of rows that correspond to each product ordered by a customer, and each product has a family type associated:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NumOrder SKU&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Family type&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Baby&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1245&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Kid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This example represents an order of 2 units, with 2 different family types. The family types that I have are: Baby, Kid, Woman, Men, Men&amp;amp;Acessories; Woman&amp;amp;Acessories, Shoes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a calculated column that if an order has only Baby, display "baby", and so on. But if an order&amp;nbsp; has at least one product that is baby and kid, displays "Baby_Kid" and so on. For all combinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 10:28:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Agregate-rows-by-family-type/m-p/1922294#M41670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-25T10:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Agregate rows by family type</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Agregate-rows-by-family-type/m-p/1922330#M41672</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I did not fully understand but this should be close:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
CONCATENATEX(
 CALCULATETABLE( VALUES(Table4[Family Type]) , ALLEXCEPT(Table4,Table4[Number])),
 Table4[Family Type],"|"
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 10:55:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Agregate-rows-by-family-type/m-p/1922330#M41672</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-25T10:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Agregate rows by family type</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Agregate-rows-by-family-type/m-p/1922365#M41675</link>
      <description>&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is almost this. The problem is that Child| Baby and Baby| Child is the same category but I have two different categories.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 11:14:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Agregate-rows-by-family-type/m-p/1922365#M41675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-25T11:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Agregate rows by family type</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Agregate-rows-by-family-type/m-p/1922372#M41677</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Then you need to provide a propper example and show all possible scenarios.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 11:17:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Agregate-rows-by-family-type/m-p/1922372#M41677</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-25T11:17:17Z</dc:date>
    </item>
  </channel>
</rss>

