<?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 for a filtered subset in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/1300139#M22496</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 08:07:53 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-08-17T08:07:53Z</dc:date>
    <item>
      <title>RANKX for a filtered subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/1299919#M22489</link>
      <description>&lt;P&gt;HI guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help needed! It is a very simple task that i need to achieve but my formula does not work, for unknown reasons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a number of locations and need to filter for the top 10 locations with the most injuries but only for locations with more than a certain amount of actual worked hours (e.g. 30'000).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My approach is to first filter the LOCATION Dim Table with FILTER() and then do the RANKX by Injury.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my Formula so far:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rank = 

RANKX(
    FILTER(ALL(DM_VW_LOCATION);[Actual Worked Hours]&amp;gt;=30000);
    CALCULATE([Total Injuries Rate];ALLEXCEPT(DM_VW_LOCATION;DM_VW_LOCATION[SiteCode]));;DESC;Dense)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the Measure still ranks locations below the 30'000 worked hours and provides very strange results:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;There's no filter on that Matrix visualization yet, but my goal is to filter for Rank&amp;lt;=10 so that it only shows the top 10.&lt;/P&gt;&lt;P&gt;Any help?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 07:01:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/1299919#M22489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T07:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX for a filtered subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/1300031#M22494</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , for Rank refer these &lt;/P&gt;
&lt;P&gt;For Rank Refer these links&lt;BR /&gt;&lt;STRONG&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; // check category and sub category rank here&lt;/STRONG&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;A href="https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 07:33:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/1300031#M22494</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-17T07:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX for a filtered subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/1300085#M22495</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;&lt;BR /&gt;Thanks for the link. I've gone through it but still don't know where things are going south. The filtering for the subset of locations does not seem to work.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 07:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/1300085#M22495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T07:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX for a filtered subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/1300139#M22496</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 08:07:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/1300139#M22496</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-17T08:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX for a filtered subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/2143397#M49281</link>
      <description>&lt;P&gt;did you get the solution?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 14:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-for-a-filtered-subset/m-p/2143397#M49281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-19T14:13:37Z</dc:date>
    </item>
  </channel>
</rss>

