<?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: Help with RANKX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-RANKX/m-p/2860501#M92102</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I cannot know how your datamodel looks like, but please try something like below.&lt;/P&gt;
&lt;P&gt;Or, please share your sample pbix file's link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RANKX measure =
RANKX (
    SUMMARIZE (
        ALLSELECTED ( 'Non Overlapping' ),
        'TableName1'[Group],
        'TableName2'[Region],
        'TableName3'[Division],
        'TableName4'[UserID],
        'TableName5'[Specialities]
    ),
    [Average Personal Time],
    ,
    DESC,
    DENSE
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 03:20:56 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-10-25T03:20:56Z</dc:date>
    <item>
      <title>Help with RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-RANKX/m-p/2860183#M92081</link>
      <description>&lt;P&gt;I have looked through some other threads and articles online but I can't sort out what my issue is that I'm having with RANKX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to have a ranking that ranks by user ID, and will auto update the ranking based on the filters applied to my table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have am using this formula for my RankX:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANKX = RANKX(ALLSELECTED('Non Overlapping') , [Average Personal Time],,DESC,Dense )&lt;/LI-CODE&gt;&lt;P&gt;Here you can see the results for my "RANKX" column aren't coming out correctly. My intended output would be row 1 to be 1, then 2, 3, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 22:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-RANKX/m-p/2860183#M92081</guid>
      <dc:creator>NB689</dc:creator>
      <dc:date>2022-10-24T22:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-RANKX/m-p/2860501#M92102</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I cannot know how your datamodel looks like, but please try something like below.&lt;/P&gt;
&lt;P&gt;Or, please share your sample pbix file's link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RANKX measure =
RANKX (
    SUMMARIZE (
        ALLSELECTED ( 'Non Overlapping' ),
        'TableName1'[Group],
        'TableName2'[Region],
        'TableName3'[Division],
        'TableName4'[UserID],
        'TableName5'[Specialities]
    ),
    [Average Personal Time],
    ,
    DESC,
    DENSE
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 03:20:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-RANKX/m-p/2860501#M92102</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-10-25T03:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-RANKX/m-p/2871211#M92652</link>
      <description>&lt;P&gt;Here's what our data looks like. The file is rather large right now and hase some sensitive data, but if you need more information I can provide that.&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 Average Personal Time looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Average Personal Time 3 = IFERROR( 
    SUM('Non Overlapping'[After Hours]) / 
    DISTINCTCOUNT('Non Overlapping'[Login Number]) / 
    (CALCULATE(DISTINCTCOUNT('Non Overlapping'[User ID]), FILTER('Non Overlapping', 'Non Overlapping'[After Hours]&amp;gt;0)) +0)
, 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 14:42:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-RANKX/m-p/2871211#M92652</guid>
      <dc:creator>NB689</dc:creator>
      <dc:date>2022-10-28T14:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-RANKX/m-p/2875105#M92891</link>
      <description>&lt;P&gt;This took some trial and error, but I ended up solving my issue. One change I am going to make is I would like for the ranking to not duplicate the ranking in the event of a tie and I would like the ranking to update when I filter the data, but other than those changes it looks like this is working.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rank X Personal Time = 
RANKX(ALL('Non Overlapping'[User ID]), CALCULATE(SUM('Non Overlapping'[After Hours] ) , ALLEXCEPT('Non Overlapping', 'Non Overlapping'[User ID])),,DESC,Dense)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 31 Oct 2022 16:46:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-RANKX/m-p/2875105#M92891</guid>
      <dc:creator>NB689</dc:creator>
      <dc:date>2022-10-31T16:46:13Z</dc:date>
    </item>
  </channel>
</rss>

