<?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: Filtered Rank Problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Rank-Problem/m-p/3111706#M109956</link>
    <description>&lt;P&gt;Hi tamerj1, thank you. Before the customer was ranked at 3. With the new formula they are ranked at one. The correct value is 2. What I am ultimately trying to create is a card showing the customer's unfiltered rank.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Mar 2023 02:59:44 GMT</pubDate>
    <dc:creator>m_wex</dc:creator>
    <dc:date>2023-03-05T02:59:44Z</dc:date>
    <item>
      <title>Filtered Rank Problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Rank-Problem/m-p/3111392#M109924</link>
      <description>&lt;P&gt;Have created a standard ranking, which is working fine, using the following:&amp;nbsp;&lt;SPAN&gt;Customer Ranking = &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;'Customer Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Sold-to Party Group]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[CY Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt;,,&lt;/SPAN&gt;&lt;SPAN&gt;desc&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a customer profile page where the filter is &lt;SPAN&gt;Sold-to Party Group (field used in the above formula). I am trying to return a simple card showing the customer's rank of all customers. The problem is that the rank is incorrect when using the above formula on the page filtered by customer group. The 2nd ranked customer shows as 3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am pretty sure the problem is being caused by the page's selection criteria (Sold-to Party Group).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help woould be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 05:52:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Rank-Problem/m-p/3111392#M109924</guid>
      <dc:creator>m_wex</dc:creator>
      <dc:date>2023-03-04T05:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered Rank Problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Rank-Problem/m-p/3111415#M109925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="288105" data-lia-user-login="m_wex" class="lia-mention lia-mention-user"&gt;m_wex&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Customer Ranking = &lt;/SPAN&gt;&lt;SPAN&gt;rankx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;allselected&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Customer Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Sold-to Party Group]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[CY Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt;,,&lt;/SPAN&gt;&lt;SPAN&gt;desc&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 07:02:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Rank-Problem/m-p/3111415#M109925</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-04T07:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered Rank Problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Rank-Problem/m-p/3111706#M109956</link>
      <description>&lt;P&gt;Hi tamerj1, thank you. Before the customer was ranked at 3. With the new formula they are ranked at one. The correct value is 2. What I am ultimately trying to create is a card showing the customer's unfiltered rank.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 02:59:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Rank-Problem/m-p/3111706#M109956</guid>
      <dc:creator>m_wex</dc:creator>
      <dc:date>2023-03-05T02:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered Rank Problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Rank-Problem/m-p/3112551#M110059</link>
      <description>&lt;P&gt;Looking at the problem more closely it appears to be isolated to the overall customer group ranking. I am trying to accomplish two goals: Show the customer's rank by year and then their rank based on total sales. The rank by year is correct but not the overall. The correct answer in the example below for rank based on all sales is 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to showing ranking on a table I am also trying to show the overall rank (without year filter) on a seperate card. There is only one filter on this page at it is sold-to Party Group. The dax for the customer ranking is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Customer Ranking 2 = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;HASONEFILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Customer Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Sold-to Party Group]&lt;/SPAN&gt;&lt;SPAN&gt;),&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;'Customer Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Sold-to Party Group]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[CY Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt;,,&lt;/SPAN&gt;&lt;SPAN&gt;desc&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 22:35:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtered-Rank-Problem/m-p/3112551#M110059</guid>
      <dc:creator>m_wex</dc:creator>
      <dc:date>2023-03-05T22:35:03Z</dc:date>
    </item>
  </channel>
</rss>

