<?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 dynamic ranking by sorting in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2480060#M67836</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have built a ranking by delivery quantity. As in the image. But now I want that the ranking is automatically adjusted according to my sorting. So if I sort it by the last 14 days the rank is displayed again with 1,2,3 ....&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;It should not look like this, but then start again with 1.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 09:57:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-27T09:57:01Z</dc:date>
    <item>
      <title>dynamic ranking by sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2480060#M67836</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have built a ranking by delivery quantity. As in the image. But now I want that the ranking is automatically adjusted according to my sorting. So if I sort it by the last 14 days the rank is displayed again with 1,2,3 ....&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;It should not look like this, but then start again with 1.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 09:57:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2480060#M67836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T09:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic ranking by sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2480198#M67845</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , What do you mean by sort for the last 14 days? &lt;/P&gt;
&lt;P&gt;Rank is created on a column or set of column and measure and remains on that.(with all used in rank filter will not work, with allselected filter will work )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can make it dynamic using a switch&amp;nbsp;&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;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 10:55:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2480198#M67845</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-27T10:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic ranking by sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2480341#M67857</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;Yes, I want to have a ranking which is always based on the current sorting of the table.&lt;/P&gt;&lt;P&gt;So it would also go a simple counting of the table columns from top to bottom. Is this possible?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 11:35:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2480341#M67857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T11:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic ranking by sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2481341#M67925</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Do you already have a measure for Delivery Quantity?&lt;/P&gt;&lt;P&gt;Are you ranking Countries or Products, etc? f so it's great if your model has unique dimension tables to connect to your fact table. Also the Date Table should be the source of your date slicer.&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total Delivered Units&lt;/STRONG&gt; = SUM(Table[Total Shipments])&amp;nbsp; (this will be used in ranking measure.)&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Rank&lt;/STRONG&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;( Table&lt;/SPAN&gt;&lt;SPAN&gt;[Cat_id_code]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;[&lt;STRONG&gt;Total Delivered Units&lt;/STRONG&gt;]&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;SPAN&gt;* see note below on Customer ranking by Sales.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If you have a data model with customer, product, etc dimension tables a good way to rank, say customers by sales is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rank = &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[Customer Names]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;[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;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Apr 2022 19:20:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2481341#M67925</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-27T19:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic ranking by sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2528983#M70839</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just want to confirm if you resolved this issue? If yes,&amp;nbsp;&lt;U&gt;you can accept the answer helpful as the solution&lt;/U&gt;&amp;nbsp;&lt;STRONG&gt;or&lt;/STRONG&gt;&amp;nbsp;&lt;U&gt;share you method and accept it as solution&lt;/U&gt;, thanks for your contribution to improve Power BI.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If you need more help, please let me know.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Tang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 09:49:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-ranking-by-sorting/m-p/2528983#M70839</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-05-20T09:49:04Z</dc:date>
    </item>
  </channel>
</rss>

