<?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: Fixed versus Dynamic Rank with RankX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/3373133#M126972</link>
    <description>&lt;P&gt;Yep, works perfectly. Exactly what I needed as well. The requirement description is very clear and this proposed solution works well. I still don't understand why the ALL() function is not enough to remove all the filters, wether in the visual itself as well as filters in slicers and in the filters pane, but the solution works. Thanks so much.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 01:02:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-10T01:02:13Z</dc:date>
    <item>
      <title>Fixed versus Dynamic Rank with RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342547#M24041</link>
      <description>&lt;P&gt;I have a basic matrix table with Product Name, Profit and two rank columns (1 fixed, 1 dynamic) that are calculated with the following measures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;(1)&amp;nbsp;&lt;SPAN&gt;Product Profit Rank = RANKX(ALLSELECTED(Orders[Product Name]),CALCULATE(SUM(Orders[Profit])))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;**This measure is dynamic, so it adjusts to the filters I have added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;(2)&amp;nbsp;&lt;SPAN&gt;Product Profit Fixed Rank = RANKX(ALL(Orders[Product Name]),CALCULATE(SUM(Orders[Profit])))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;** I used the ALL function - rather than ALLSELECTED like in (1) - becuase I want it to be fixed. So as I change the filter, or click on another visualization, I want the dyanmic formula to readjust the #1 rank, but I want the rankings for the second measure to stay fixed. So there may be a region where product X is #1 rank, but the fixed rank compared to the entire dataset is #10. &lt;FONT face="arial black,avant garde"&gt;Why is my second formula (2) not fixed as filter context changes? it keeps dynamically updating like (1).&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Frazer&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 23:08:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342547#M24041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-02T23:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed versus Dynamic Rank with RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342655#M24042</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Product Profit Fixed Rank = RANKX(ALL(Orders),CALCULATE(SUM(Orders[Profit])))&lt;/LI-CODE&gt;
&lt;P&gt;Otherwise,&amp;nbsp;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 00:34:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342655#M24042</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-03T00:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed versus Dynamic Rank with RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342726#M24043</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;Thanks for the information on better communicating my questions. This time around I have attached a link to a sample file of the question I am trying to solve. Essentially, I am trying to make the Fixed rank column, well... fixed, so as I click on different categories in the stacked column chart the dynamic rank will adjust 1,2,3,4,5, etc, while the fixed will stay the same consistent with the global ranking 3,5,7,9,etc,.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1eqGAh4aieAVV9LgsM1heHP62Ey65Usu4/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1eqGAh4aieAVV9LgsM1heHP62Ey65Usu4/view?usp=sharing&lt;/A&gt;&amp;nbsp;&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;</description>
      <pubDate>Thu, 03 Sep 2020 01:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342726#M24043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-03T01:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed versus Dynamic Rank with RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342852#M24048</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , you rank all product[name] will be dynamic inside any group by/axis/legend you will use. This how it works. Anything else you add to visual, will create a group for Rank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;City Rank = RANKX(all(Geography[City]),[Sales]) // this gives me rank 1only when I use with City ID&lt;BR /&gt;Geography Rank = RANKX(all(Geography),[Sales]) // correct Rank with city id as both city and city Id at lowest level &lt;BR /&gt;City and ID Rank = RANKX(all(Geography[City],Geography[City Id]),[Sales]) // correct Rank with city id as both city and city Id are part of the Rank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if this can help you a bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Rank Refer these links&lt;BR /&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 03:00:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342852#M24048</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-03T03:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed versus Dynamic Rank with RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342882#M24049</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, I dont follow what you are trying to say. Isn't the point of using ALL so that the expression will ignore filter context?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ALL - "Returns all the rows in a table, or all the values in a column, ignoring any filters that might have been applied. This function is useful for clearing filters and creating calculations on all the rows in a table."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So if I want to create a universal rank that stays the same is there a way to adjust my current formula to do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://drive.google.com/file/d/1eqGAh4aieAVV9LgsM1heHP62Ey65Usu4/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1eqGAh4aieAVV9LgsM1heHP62Ey65Usu4/view?usp=sharing&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Product Profit Fixed Rank = RANKX(ALL(Orders[Product Name]),CALCULATE(SUM(Orders[Profit])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Sep 2020 03:22:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1342882#M24049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-03T03:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed versus Dynamic Rank with RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1343815#M24082</link>
      <description>&lt;LI-CODE lang="csharp"&gt;// This is a global rank that
// does not respond to
// any filters.

[Product Profit Fixed Rank] = 
    RANKX(
        ALL( Orders[Product Name] )
        CALCULATE(
            SUM( Orders[Profit] ),
            ALLEXCEPT(
                Orders,
                Orders[Product Name]
            )
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Sep 2020 10:09:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1343815#M24082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-03T10:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed versus Dynamic Rank with RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1345030#M24118</link>
      <description>&lt;P&gt;Amazing. Exactly what I was looking for. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 15:22:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/1345030#M24118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-03T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed versus Dynamic Rank with RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/3373133#M126972</link>
      <description>&lt;P&gt;Yep, works perfectly. Exactly what I needed as well. The requirement description is very clear and this proposed solution works well. I still don't understand why the ALL() function is not enough to remove all the filters, wether in the visual itself as well as filters in slicers and in the filters pane, but the solution works. Thanks so much.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 01:02:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-versus-Dynamic-Rank-with-RankX/m-p/3373133#M126972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-10T01:02:13Z</dc:date>
    </item>
  </channel>
</rss>

