<?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: Issue with RankX in a Matrix - Duplicate Ranks for Differing Values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4259000#M168751</link>
    <description>&lt;P&gt;Sounds like you want a calculated column instead? Or do you still want the time filter to be observed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&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;</description>
    <pubDate>Sat, 26 Oct 2024 13:15:15 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-10-26T13:15:15Z</dc:date>
    <item>
      <title>Issue with RankX in a Matrix - Duplicate Ranks for Differing Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258597#M168735</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a matrix with Market and Advertiser in the rows, and I want to rank the Advertisers within each Market on different KPIs. This seems straightforward, but I'm getting duplicate ranks for advertisers even when their values are different. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have TotalSpend:&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;LI-CODE lang="markup"&gt;TotalSpend = SUM(Data[$])&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;And Rank_Spend:&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;LI-CODE lang="markup"&gt;Rank_Spend = 
IF(
    [TotalSpend] &amp;gt; 0,
    RANKX(
        ALL('Data'[ADVERTISER]),
        [TotalSpend],,DESC, Dense)
)&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;But, as you can see, the ranks are incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want the user to be able to select which advertisers are displayed in a market, but not have the ranks change. For example, if the user chooses to only show Coolray Cooling Heating Plumbing, the rank in Atlanta will still show as 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like I'm missing something obvious, but any help would be appreciated. I have my sample dashboard and dataset below. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/1zCjKdUYyehgN88rC920Trvz9dj4uFBJg?usp=sharing" target="_self"&gt;Sample Dashboard and Dataset&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2024 00:41:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258597#M168735</guid>
      <dc:creator>hoyt22</dc:creator>
      <dc:date>2024-10-26T00:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RankX in a Matrix - Duplicate Ranks for Differing Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258662#M168738</link>
      <description>&lt;P&gt;link requires access.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 22:33:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258662#M168738</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-25T22:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RankX in a Matrix - Duplicate Ranks for Differing Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258697#M168741</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;Apologies! I've fixed the link. Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2024 00:45:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258697#M168741</guid>
      <dc:creator>hoyt22</dc:creator>
      <dc:date>2024-10-26T00:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RankX in a Matrix - Duplicate Ranks for Differing Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258734#M168744</link>
      <description>&lt;P&gt;see attached&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2024 02:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258734#M168744</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-26T02:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RankX in a Matrix - Duplicate Ranks for Differing Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258743#M168745</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;The only issue I see is that I don't want the rank of the advertiser to change based on the selections in the Advertiser slicer. As you have it, if I only have one advertiser in the market selected, its rank will update to 1. But I'd like it to stay whatever it was as if all advertisers are still included. Does that make sense? I tried changing ALLSELECTED to ALL, but it messed up the ranks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2024 02:39:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4258743#M168745</guid>
      <dc:creator>hoyt22</dc:creator>
      <dc:date>2024-10-26T02:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RankX in a Matrix - Duplicate Ranks for Differing Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4259000#M168751</link>
      <description>&lt;P&gt;Sounds like you want a calculated column instead? Or do you still want the time filter to be observed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&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;</description>
      <pubDate>Sat, 26 Oct 2024 13:15:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4259000#M168751</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-26T13:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RankX in a Matrix - Duplicate Ranks for Differing Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4259224#M168766</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;I still want the date slicer to be observed. The Advertiser slicer should just affect what shows in the matrix but not the rankings themselves. Let me know if that isn't clear. I appreciate your help!&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2024 21:46:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4259224#M168766</guid>
      <dc:creator>hoyt22</dc:creator>
      <dc:date>2024-10-26T21:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RankX in a Matrix - Duplicate Ranks for Differing Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4259232#M168767</link>
      <description>&lt;P&gt;Then you will have to invest in a proper data model, with a calendar table, a Market table, and a Advertisers table.&amp;nbsp; Not possible to do this all in the same fact table.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2024 22:40:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4259232#M168767</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-26T22:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RankX in a Matrix - Duplicate Ranks for Differing Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4259605#M168798</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 22:43:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-RankX-in-a-Matrix-Duplicate-Ranks-for-Differing/m-p/4259605#M168798</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2024-10-27T22:43:45Z</dc:date>
    </item>
  </channel>
</rss>

