<?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: show rank in cards (without any row) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3471565#M132564</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually I will filter another category(lets say caterogy 2) and then I need the rank on category (A,B,C,D).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So can you please reshape your dax?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 15:32:08 GMT</pubDate>
    <dc:creator>logan_logan</dc:creator>
    <dc:date>2023-10-11T15:32:08Z</dc:date>
    <item>
      <title>show rank in cards (without any row)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3469783#M132469</link>
      <description>&lt;P&gt;Hi I want to show rank in cards.&lt;/P&gt;&lt;P&gt;Like&amp;nbsp;&lt;/P&gt;&lt;P&gt;Category&amp;nbsp; &amp;nbsp; &amp;nbsp;SALES&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 22&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 29&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I select category C, then in the card I should see '2' as the rank on sales is the second.&lt;/P&gt;&lt;P&gt;I treid this DAX that works in table/matrix but not on Cards.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rank_LM =&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'&lt;/SPAN&gt;&lt;SPAN&gt;[Categoy]&lt;/SPAN&gt;&lt;SPAN&gt;),sum(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;</description>
      <pubDate>Tue, 10 Oct 2023 21:00:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3469783#M132469</guid>
      <dc:creator>logan_logan</dc:creator>
      <dc:date>2023-10-10T21:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: show rank in cards (without any row)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3469918#M132482</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="482638" data-lia-user-login="logan_logan" class="lia-mention lia-mention-user"&gt;logan_logan&lt;/a&gt;&amp;nbsp;let try FILTER constent to your meassure for the&amp;nbsp;table to include only the rows where the Category matches the selected category in your card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rank_LM =&lt;BR /&gt;RANKX(&lt;BR /&gt;FILTER('table', 'table'[Category] = SELECTEDVALUE('table'[Category])),&lt;BR /&gt;SUM('table'[Sales]),&lt;BR /&gt;,&lt;BR /&gt;DESC&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know if this works&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 22:26:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3469918#M132482</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-10T22:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: show rank in cards (without any row)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3471565#M132564</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually I will filter another category(lets say caterogy 2) and then I need the rank on category (A,B,C,D).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So can you please reshape your dax?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:32:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3471565#M132564</guid>
      <dc:creator>logan_logan</dc:creator>
      <dc:date>2023-10-11T15:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: show rank in cards (without any row)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3471680#M132571</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="482638" data-lia-user-login="logan_logan" class="lia-mention lia-mention-user"&gt;logan_logan&lt;/a&gt;&amp;nbsp;you can reshape with a CALCULATE function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rank_LM_Category2 =&lt;BR /&gt;RANKX(&lt;BR /&gt;FILTER('table', 'table'[Category] = "Category 2"),&lt;BR /&gt;CALCULATE(SUM('table'[Sales]), ALL('table'[Category])),&lt;BR /&gt;,&lt;BR /&gt;DESC&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know if this works&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 16:22:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3471680#M132571</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-11T16:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: show rank in cards (without any row)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3472440#M132603</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="482638" data-lia-user-login="logan_logan" class="lia-mention lia-mention-user"&gt;logan_logan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try to create a measure with below dax formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure2 =
VAR _rk =
    RANKX ( ALL ( 'Table' ), CALCULATE ( MAX ( 'Table'[SALES] ) ),, DESC, DENSE )
VAR _result =
    IF ( ISFILTERED ( 'Table'[Category] ), _rk, BLANK () )
RETURN
    _result
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer the attached .pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 03:32:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3472440#M132603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-12T03:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: show rank in cards (without any row)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3473674#M132669</link>
      <description>&lt;P&gt;I had to tweak a lillte bit as I had two categories but **bleep** worked. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 14:05:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/show-rank-in-cards-without-any-row/m-p/3473674#M132669</guid>
      <dc:creator>logan_logan</dc:creator>
      <dc:date>2023-10-12T14:05:34Z</dc:date>
    </item>
  </channel>
</rss>

