<?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 ASC incorrectly starting at 2 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151730#M164988</link>
    <description>&lt;P&gt;This seems to have worked. Thanks very much.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Are you able to explain what the issue was?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 04:38:37 GMT</pubDate>
    <dc:creator>greenskmachine2</dc:creator>
    <dc:date>2024-09-16T04:38:37Z</dc:date>
    <item>
      <title>RANKX ASC incorrectly starting at 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151470#M164971</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am, for the first time, using RANKX for reporting different data both in a descending and an ascending way.&amp;nbsp;&lt;BR /&gt;I've had no issues with DESC, but for some reason ASC always starts at 2. It seems that everything else that's in my DimBusiness table, that I'm not interested in/is filtered out, becomes a 1. I don't know how to manage it. Obviously my filters are wrong.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm using this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Ranking Ave =&lt;BR /&gt;RANKX( ALL(DimBusiness[BusinessName]), CALCULATE( [Weighted Ave],&lt;BR /&gt;KEEPFILTERS( DATESBETWEEN( Dim[CalendarDate], [ReportingStartDate], [ReportingEndDate] ) ) ),&lt;BR /&gt;, ASC, DENSE )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Others have had the same issues, but I can't wrap my head around it. Help much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2024 23:47:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151470#M164971</guid>
      <dc:creator>greenskmachine2</dc:creator>
      <dc:date>2024-09-15T23:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX ASC incorrectly starting at 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151486#M164973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="706045" data-lia-user-login="greenskmachine2" class="lia-mention lia-mention-user"&gt;greenskmachine2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the reason could be the presence of blank values in your measure&amp;nbsp;&lt;SPAN&gt;[Weighted Ave]. please share sample data if possible&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 00:40:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151486#M164973</guid>
      <dc:creator>powerbiexpert22</dc:creator>
      <dc:date>2024-09-16T00:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX ASC incorrectly starting at 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151669#M164985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please try something like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Ranking Ave =
VAR _t =
    FILTER ( ALL ( DimBusiness[BusinessName] ), ( NOT [Weighted Ave] = 0 ) )
RETURN
    RANKX (
        _t,
        CALCULATE (
            [Weighted Ave],
            KEEPFILTERS (
                DATESBETWEEN ( Dim[CalendarDate], [ReportingStartDate], [ReportingEndDate] )
            )
        ),
        ,
        ASC,
        DENSE
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Sep 2024 03:21:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151669#M164985</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-09-16T03:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX ASC incorrectly starting at 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151730#M164988</link>
      <description>&lt;P&gt;This seems to have worked. Thanks very much.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Are you able to explain what the issue was?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 04:38:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151730#M164988</guid>
      <dc:creator>greenskmachine2</dc:creator>
      <dc:date>2024-09-16T04:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX ASC incorrectly starting at 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151794#M164990</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to create a virtual table, inside the measure, that does not contain zero value of [Weighted Ave]. And then, I tried to rank among the virtual table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to change the condition, you can try altering the below part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR _t =&lt;BR /&gt;FILTER ( ALL ( DimBusiness[BusinessName] ), ( NOT [Weighted Ave] = 0 ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this explains.&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 05:42:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ASC-incorrectly-starting-at-2/m-p/4151794#M164990</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-09-16T05:42:25Z</dc:date>
    </item>
  </channel>
</rss>

