<?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: Ranking issue when filtering in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2492361#M68671</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379970" data-lia-user-login="NB_Data" class="lia-mention lia-mention-user"&gt;NB_Data&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;You can try to replace all() with allselected(), a&lt;SPAN&gt;s there is no sample data to test, not sure if it works, just try it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&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;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 05:42:52 GMT</pubDate>
    <dc:creator>v-xiaotang</dc:creator>
    <dc:date>2022-05-04T05:42:52Z</dc:date>
    <item>
      <title>Ranking issue when filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2462231#M66712</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running into an issue when using the RANKX function within a table, and then filtering that table. Unfiltered, it works great, no issues with the actual ranked output field/column. But then if I filter the table for a particular hospital/institution it returns a completely wonky rank. I'm also having the rank for a particular hospital displayed in a card and it of course returns the same errant rank number.&lt;BR /&gt;&lt;BR /&gt;[I've removed the hospital/institution names from the images below]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfiltered:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filtered for that one hospital/institution above, that showed a rank of #8, it now shows #5, and the "% of Hosp Discharges" and "Sum Hosp %" also changed:&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;The measure for "DischargeRank Hosp.":&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;Appreciate the help in advance! This one has had me stumped!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 22:05:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2462231#M66712</guid>
      <dc:creator>NB_Data</dc:creator>
      <dc:date>2022-04-18T22:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking issue when filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2462413#M66723</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379970" data-lia-user-login="NB_Data" class="lia-mention lia-mention-user"&gt;NB_Data&lt;/a&gt; , Sum of discharge should not change with the filter for hospital/institution&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&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>Tue, 19 Apr 2022 02:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2462413#M66723</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-19T02:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking issue when filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2463599#M66823</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;, unfortunately I can't easily create a de-identified dummy pbix to work with. The first screenshot is in table/matrix format, with institution and discharges being fields from the dataset, and the others being measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't be the only one that's experienced this table/matrix filtering issue.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:53:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2463599#M66823</guid>
      <dc:creator>NB_Data</dc:creator>
      <dc:date>2022-04-19T12:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking issue when filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2463654#M66830</link>
      <description>&lt;P&gt;Use Performance Analyzer to get the queries used both with and without filtering for an individual institution and compare them both in DAX Studio. It may be that some additional columns are being filtered beyond what you explicitly specify, e.g. a sort by column.&lt;/P&gt;&lt;P&gt;Once you know which columns are being filtered you may be able to alter your measures to factor that in.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 13:16:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2463654#M66830</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-04-19T13:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking issue when filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2492361#M68671</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379970" data-lia-user-login="NB_Data" class="lia-mention lia-mention-user"&gt;NB_Data&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;You can try to replace all() with allselected(), a&lt;SPAN&gt;s there is no sample data to test, not sure if it works, just try it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&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;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 05:42:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-issue-when-filtering/m-p/2492361#M68671</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-05-04T05:42:52Z</dc:date>
    </item>
  </channel>
</rss>

