<?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 with Multiples values problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-with-Multiples-values-problem/m-p/1199507#M19139</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please ignore the previous post. Following are the required measures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rank Answered Asc = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    ALLSELECTED(Sheet1[Name]),
    [Avg Answered Time],,ASC
    )
)

Rank Answered Asc Skip = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    ALLSELECTED(Sheet1[Name]),
    [Avg Answered Time],,ASC,Dense
    )
)


Rank Answered Desc = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    ALLSELECTED(Sheet1[Name]),
    [Avg Answered Time],,DESC
)
)

Rank Answered Desc Skip = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    ALLSELECTED(Sheet1[Name]),
    [Avg Answered Time],,DESC,Skip
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is ranking as accuretly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;If it helps, please mark it as a solution. Kudos would be a cherry on the top &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image)&lt;BR /&gt;&lt;BR /&gt;Blog: &lt;A href="https://www.vivran.in/my-blog" target="_blank"&gt;vivran.in/my-blog&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/imvivran" target="_blank"&gt;Follow on Twitter&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2020 05:27:48 GMT</pubDate>
    <dc:creator>vivran22</dc:creator>
    <dc:date>2020-07-03T05:27:48Z</dc:date>
    <item>
      <title>RankX with Multiples values problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-with-Multiples-values-problem/m-p/1198972#M19116</link>
      <description>&lt;P&gt;Hi everyone, i'm trying to get a rank from this database in this report:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://1drv.ms/u/s!AgluPUER5JqlmDmLaEsou6-hTx11?e=UMl9zi" target="_self"&gt;click here to see&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'm trying with this two measures:&lt;BR /&gt;This one is make to made a filter ignoring 0 values i'm not sure if is doing it well:&lt;BR /&gt;&lt;BR /&gt;MeasureAverageAnswered = CALCULATE(SUM(Sheet1[Answered]),&lt;BR /&gt;FILTER(Sheet1,Sheet1[Name] = MAX(Sheet1[Name])))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And the rank measure that i made is this one below:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rank = RANKX(ALL(Sheet1[Answered]),[MeasureAverageAnswered],,DESC,Dense)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you see on the image the rank measure only brings me number 1 value instead a rank&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Can someone Help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the files are on the top of this post&lt;BR /&gt;&lt;BR /&gt;Thank You Very much for reading!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 23:36:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-with-Multiples-values-problem/m-p/1198972#M19116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T23:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: RankX with Multiples values problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-with-Multiples-values-problem/m-p/1199336#M19124</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Avg Answered Time = AVERAGE(Sheet1[Answered])

Rank Answered Time1 = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    (Sheet1),
    [Avg Answered Time]
 )
)


Rank Answered Time = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    (Sheet1),
    [Avg Answered Time],,DESC,Dense
  )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&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;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;If it helps, please mark it as a solution. Kudos would be a cherry on the top &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image)&lt;BR /&gt;&lt;BR /&gt;Blog: &lt;A href="https://www.vivran.in/my-blog" target="_blank"&gt;vivran.in/my-blog&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/imvivran" target="_blank"&gt;Follow on Twitter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 03:15:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-with-Multiples-values-problem/m-p/1199336#M19124</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-07-03T03:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: RankX with Multiples values problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-with-Multiples-values-problem/m-p/1199438#M19131</link>
      <description>&lt;P&gt;Appreciated your respoonse but the rank isn't correct based on the average every person as you see in your image some values haven't the right top position i've tried by myself and has the same results, is in fact an error that i have before i developed the posted formulas.&lt;BR /&gt;&lt;BR /&gt;Any idea how to solve this?&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 04:43:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-with-Multiples-values-problem/m-p/1199438#M19131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-03T04:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: RankX with Multiples values problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-with-Multiples-values-problem/m-p/1199507#M19139</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please ignore the previous post. Following are the required measures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rank Answered Asc = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    ALLSELECTED(Sheet1[Name]),
    [Avg Answered Time],,ASC
    )
)

Rank Answered Asc Skip = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    ALLSELECTED(Sheet1[Name]),
    [Avg Answered Time],,ASC,Dense
    )
)


Rank Answered Desc = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    ALLSELECTED(Sheet1[Name]),
    [Avg Answered Time],,DESC
)
)

Rank Answered Desc Skip = 
IF(
    HASONEVALUE(Sheet1[Name]),
RANKX(
    ALLSELECTED(Sheet1[Name]),
    [Avg Answered Time],,DESC,Skip
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is ranking as accuretly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;If it helps, please mark it as a solution. Kudos would be a cherry on the top &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image)&lt;BR /&gt;&lt;BR /&gt;Blog: &lt;A href="https://www.vivran.in/my-blog" target="_blank"&gt;vivran.in/my-blog&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/imvivran" target="_blank"&gt;Follow on Twitter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 05:27:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-with-Multiples-values-problem/m-p/1199507#M19139</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-07-03T05:27:48Z</dc:date>
    </item>
  </channel>
</rss>

