<?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: Total Ranking when filtered in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Ranking-when-filtered/m-p/4055808#M160952</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464699" data-lia-user-login="bfuller62" class="lia-mention lia-mention-user"&gt;bfuller62&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your problem solved, if so, please mark the corresponding reply as a solution, which will help users with the same problem to better solve their problem.&lt;BR /&gt;&lt;BR /&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2024 08:04:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-23T08:04:45Z</dc:date>
    <item>
      <title>Total Ranking when filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Ranking-when-filtered/m-p/4023616#M158798</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm struggling with a RANKX measure showing the correct rank when filtering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a matrix that is filterd for a&amp;nbsp;specific customer with product type, $, % Chg, and their $ ranking against ALL customers in the selected market for the selected report period.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Market and Report Period slicers are from reference tables with 1:Many relations to the sales table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem I'm having is the rank for the yellow product type is wrong... they are actually 1st overall in that product type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However if I put the customer name in the matrix and expand the type subtotal, it shows the correct rank (1st) at the customer level, but still 2nd for the product type subtotal&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Current DAX Measure:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;M_Rank_Category =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;HASONEVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'TABLE'&lt;/SPAN&gt;&lt;SPAN&gt;[CUSTOMER]&lt;/SPAN&gt;&lt;SPAN&gt;),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'TABLE'[CUSTOMER&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[M_$CY]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;where&amp;nbsp;M_$CY = SUM(TABLE'[CY Sales $])&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Jul 2024 19:38:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Ranking-when-filtered/m-p/4023616#M158798</guid>
      <dc:creator>bfuller62</dc:creator>
      <dc:date>2024-07-03T19:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Total Ranking when filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Ranking-when-filtered/m-p/4023704#M158803</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464699" data-lia-user-login="bfuller62" class="lia-mention lia-mention-user"&gt;bfuller62&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from information you gave, looks like the issue is from using ALL function in your RANKX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RANKX will calculate whole data (with or without getting sliced/filtered) since ALL will count everything in table inside ALL function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to filtered the result, try using customer table directly without ALL and see if it solves your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 21:19:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Ranking-when-filtered/m-p/4023704#M158803</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2024-07-03T21:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Total Ranking when filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Ranking-when-filtered/m-p/4055808#M160952</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464699" data-lia-user-login="bfuller62" class="lia-mention lia-mention-user"&gt;bfuller62&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your problem solved, if so, please mark the corresponding reply as a solution, which will help users with the same problem to better solve their problem.&lt;BR /&gt;&lt;BR /&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 08:04:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Ranking-when-filtered/m-p/4055808#M160952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-23T08:04:45Z</dc:date>
    </item>
  </channel>
</rss>

