<?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 Search final category from hierarchy table for each organization (even duplicates for each keyword) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Search-final-category-from-hierarchy-table-for-each-organization/m-p/2334564#M58747</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with DAX function or Powerquery to solve the below requirement? i need to have one final category for each keyword and organization group. if org &amp;amp; keyword is unique then need to retain the already found category in the final category column&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Feb 2022 06:56:15 GMT</pubDate>
    <dc:creator>chem094</dc:creator>
    <dc:date>2022-02-12T06:56:15Z</dc:date>
    <item>
      <title>Search final category from hierarchy table for each organization (even duplicates for each keyword)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Search-final-category-from-hierarchy-table-for-each-organization/m-p/2334564#M58747</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with DAX function or Powerquery to solve the below requirement? i need to have one final category for each keyword and organization group. if org &amp;amp; keyword is unique then need to retain the already found category in the final category column&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2022 06:56:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Search-final-category-from-hierarchy-table-for-each-organization/m-p/2334564#M58747</guid>
      <dc:creator>chem094</dc:creator>
      <dc:date>2022-02-12T06:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search final category from hierarchy table for each organization (even duplicates for each keyword)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Search-final-category-from-hierarchy-table-for-each-organization/m-p/2335386#M58804</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="169863" data-lia-user-login="chem094" class="lia-mention lia-mention-user"&gt;chem094&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as the category is unique per customer I would recommend to use/adjust your customer dimension by creating a new column "Category" there. It's definitly easier than finding a way to put it in a measure.&lt;BR /&gt;&lt;BR /&gt;Liked this post? More Content on:&lt;BR /&gt;&lt;A href="https://www.youtube.com/channel/UC2lAgCgfyLCHsRv0h-ETBWQ" target="_blank"&gt;https://www.youtube.com/channel/UC2lAgCgfyLCHsRv0h-ETBWQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2022 18:53:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Search-final-category-from-hierarchy-table-for-each-organization/m-p/2335386#M58804</guid>
      <dc:creator>TOK</dc:creator>
      <dc:date>2022-02-13T18:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search final category from hierarchy table for each organization (even duplicates for each keyword)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Search-final-category-from-hierarchy-table-for-each-organization/m-p/2338654#M58967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="169863" data-lia-user-login="chem094" class="lia-mention lia-mention-user"&gt;chem094&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create the relationship and calculated column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Final Category = 
VAR tab =
    FILTER ( 'Table', 'Table'[Customer] = EARLIER ( 'Table'[Customer] ) )
VAR Cus =
    CALCULATE ( DISTINCTCOUNT ( 'Table'[Category] ), tab )
VAR Index =
    CALCULATE ( MIN ( Category[Index] ), tab )
RETURN
    IF (
        Cus &amp;gt; 1,
        CALCULATE (
            MAX ( Category[CategoryOrder] ),
            FILTER ( Category, Category[Index] = Index )
        ),
        'Table'[Category]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Winniz&lt;BR /&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 06:12:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Search-final-category-from-hierarchy-table-for-each-organization/m-p/2338654#M58967</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-02-15T06:12:07Z</dc:date>
    </item>
  </channel>
</rss>

