<?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: DAX Rank Function is not working when I choose multiple dates from the filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4077348#M161908</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="784433" data-lia-user-login="zenbabasha33" class="lia-mention lia-mention-user"&gt;zenbabasha33&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Source Data&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Rank Function&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Select any date from the slicer, the rank will adjust within itself&lt;/P&gt;</description>
    <pubDate>Sat, 03 Aug 2024 13:42:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-03T13:42:34Z</dc:date>
    <item>
      <title>DAX Rank Function is not working when I choose multiple dates from the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4074339#M161764</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;hi Team,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have two filter Date and Region.&amp;nbsp; when i choose one date it works we and as expected but if I do multiple date from the filter it isnot working. This is the DAX i am using below. &lt;/SPAN&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Royalty'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Royalty'&lt;/SPAN&gt;&lt;SPAN&gt;[Adjusted Gross Revenue]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &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;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Skip&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;any kind of help would be greatly appreciated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Aug 2024 20:05:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4074339#M161764</guid>
      <dc:creator>zenbabasha33</dc:creator>
      <dc:date>2024-08-01T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Rank Function is not working when I choose multiple dates from the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4074625#M161774</link>
      <description>&lt;P&gt;Try this measure.&amp;nbsp;If you want to rank across all selected dates without splitting by date, you can ignore the date filter in the ranking context.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rank = 
RANKX(
    ALLSELECTED('Royalty'[Region]), 
    'Royalty'[Adjusted Gross Revenue],
    ,
    DESC,
    Skip
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 01:47:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4074625#M161774</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-02T01:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Rank Function is not working when I choose multiple dates from the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4076066#M161843</link>
      <description>&lt;P&gt;Thank you but I alreaddy&amp;nbsp; Tried this one&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 13:23:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4076066#M161843</guid>
      <dc:creator>zenbabasha33</dc:creator>
      <dc:date>2024-08-02T13:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Rank Function is not working when I choose multiple dates from the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4076188#M161846</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;ALLSELECTED function gives you all the rows in a table, ignoring the current context filter, which might be causing the unexpected ranking result when multiple dates are selected. You can use the DAX formula below to respect the current filter context for the date.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rank = 
RANKX(
    ALLSELECTED('Royalty'[Date], 'Royalty'[Region]), 
    'Royalty'[Adjusted Gross Revenue],
    ,
    DESC,
    Skip
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;Another approach is to use ALL on the date column specifically, rather than the entire table, which ensures that other filters like Region are still respected.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 14:17:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4076188#M161846</guid>
      <dc:creator>asadmd93</dc:creator>
      <dc:date>2024-08-02T14:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Rank Function is not working when I choose multiple dates from the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4077348#M161908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="784433" data-lia-user-login="zenbabasha33" class="lia-mention lia-mention-user"&gt;zenbabasha33&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Source Data&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Rank Function&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Select any date from the slicer, the rank will adjust within itself&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 13:42:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4077348#M161908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-03T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Rank Function is not working when I choose multiple dates from the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4081534#M162028</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 14:12:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rank-Function-is-not-working-when-I-choose-multiple-dates/m-p/4081534#M162028</guid>
      <dc:creator>zenbabasha33</dc:creator>
      <dc:date>2024-08-05T14:12:55Z</dc:date>
    </item>
  </channel>
</rss>

