<?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: RankX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3576305#M137883</link>
    <description>&lt;P&gt;I am using the&amp;nbsp;&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;Category&lt;/SPAN&gt;&lt;SPAN&gt;[Category Names]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[Premium]) formula in the table and card visual. When I filter for a specific category it gives a different result in the table and card visual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I need to use a different measure for the card visual?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Dec 2023 18:00:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-12-10T18:00:26Z</dc:date>
    <item>
      <title>RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3575295#M137841</link>
      <description>&lt;P&gt;RankX measure in card visual is showing a different number to the rank displayed in a table visual,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any solution for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 23:49:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3575295#M137841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-08T23:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3575446#M137846</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes that's correct, it all depends on the context on which the calculation happens. Please provide some data and the expected results.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 07:17:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3575446#M137846</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-09T07:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3576305#M137883</link>
      <description>&lt;P&gt;I am using the&amp;nbsp;&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;Category&lt;/SPAN&gt;&lt;SPAN&gt;[Category Names]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[Premium]) formula in the table and card visual. When I filter for a specific category it gives a different result in the table and card visual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I need to use a different measure for the card visual?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 18:00:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3576305#M137883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-10T18:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3576321#M137885</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can use the same measure for both as follows. Change&amp;nbsp;DESC&amp;nbsp; to ASC if needed.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rank Category = 

RANK(
    DENSE,
    ALL(Category[Category Names], 
    ORDERBY( [Premium], DESC ) 
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 19:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3576321#M137885</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-10T19:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3576396#M137893</link>
      <description>&lt;P&gt;I tried the following but am getting blank appear in the visual.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test Rank =&lt;/SPAN&gt; &lt;SPAN&gt;RANK&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;DENSE&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(Category[Category Names]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;ORDERBY&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;[Premium]&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;Note the premium amount is a DAX measure that has been used.&lt;/P&gt;&lt;P&gt;In the card visual I am adding a filter to select only one category.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example Data as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rank Category&amp;nbsp; &amp;nbsp; Premium&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Food&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; £100&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Lifestyle&amp;nbsp; &amp;nbsp; &amp;nbsp;£80&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Transport&amp;nbsp; &amp;nbsp;£60&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Education&amp;nbsp; &amp;nbsp;£20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I put transport in a card it gives the rank as 4 when it should be 3 as shown in the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 22:22:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3576396#M137893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-10T22:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3576932#M137927</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have attached a file for you, please check. It works for me.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 06:50:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3576932#M137927</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-11T06:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: RankX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3577724#M137966</link>
      <description>Thank you so much! This has now worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 11 Dec 2023 14:16:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX/m-p/3577724#M137966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-11T14:16:02Z</dc:date>
    </item>
  </channel>
</rss>

