<?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: RANX Function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348029#M24194</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="139013" data-lia-user-login="sandee" class="lia-mention lia-mention-user"&gt;sandee&lt;/a&gt;&amp;nbsp;- See if this gets you there, otherwise&amp;nbsp;@ me and I'll take a closer look&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 15:38:56 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-09-04T15:38:56Z</dc:date>
    <item>
      <title>RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1347930#M24191</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this might be a very silly asking this question On RANK DAX, however i am new and learning POWER Bi. please if you could you help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table and i want to give "Ranking" on the basis of amount that client due,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;within the table there is column at the end called "Debt Overdue" which represent "Yes" and "No" if the amount is due then "Yes"&lt;/P&gt;&lt;P&gt;and if not "No".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;img /&gt;&lt;/P&gt;&lt;P&gt;so i trying to prepare the ranking on both the condition, if i select "Yes" then should get the ranking, if select "NO" then also should reflect the ranking. please if you could help and advise .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried applying this on excel using countif .&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 15:15:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1347930#M24191</guid>
      <dc:creator>sandee</dc:creator>
      <dc:date>2020-09-04T15:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348029#M24194</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="139013" data-lia-user-login="sandee" class="lia-mention lia-mention-user"&gt;sandee&lt;/a&gt;&amp;nbsp;- See if this gets you there, otherwise&amp;nbsp;@ me and I'll take a closer look&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 15:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348029#M24194</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-04T15:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348059#M24198</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="139013" data-lia-user-login="sandee" class="lia-mention lia-mention-user"&gt;sandee&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;if(selectedvalue(slicer[slicer]) ="no",&lt;BR /&gt;rankx(all(table[Cust no]), calculate(sum(Table[amount]), filter(Table,Table[Debt Overdue] ="no"))),&lt;BR /&gt;rankx(all(table[Cust no]), calculate(sum(Table[amount]), filter(Table,Table[Debt Overdue] ="yes")))&lt;BR /&gt;)&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;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>Fri, 04 Sep 2020 15:48:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348059#M24198</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-04T15:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348862#M24220</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your response, here is what i am getting after applying:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;sorry for late response, this is because of poor internet connection. please can you advise further as how we can get proper ranking starting from 1 to the end of clients ?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 08:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348862#M24220</guid>
      <dc:creator>sandee</dc:creator>
      <dc:date>2020-09-05T08:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348879#M24223</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="139013" data-lia-user-login="sandee" class="lia-mention lia-mention-user"&gt;sandee&lt;/a&gt;&amp;nbsp;, I think this same case, what I faced&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;City Rank = RANKX(all(Geography[City]),[Sales]) // &lt;STRONG&gt;DO not work&lt;/STRONG&gt; with City ID&lt;BR /&gt;Geography Rank = RANKX(all(Geography),[Sales])&amp;nbsp;// &lt;STRONG&gt;&amp;nbsp;work&lt;/STRONG&gt; with City ID&lt;BR /&gt;City and ID Rank = RANKX(all(Geography[City],Geography[City Id]),[Sales])// &lt;STRONG&gt;&amp;nbsp;work&lt;/STRONG&gt; with City ID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try you Rank on both Cust Id and Cust name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rank = RANKX(all(Table[Cust ID],Geography[Cust Name]),Calculate(Sum('Working Ledger'[Amount Due])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically rank is inside the other group by selected in the context&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 09:26:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348879#M24223</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-05T09:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348891#M24224</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="139013" data-lia-user-login="sandee" class="lia-mention lia-mention-user"&gt;sandee&lt;/a&gt;&amp;nbsp;Is this how you want it? I have attached the file below my signature.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR Yes =
    CALCULATETABLE ( Sandee, Sandee[Debt Overdue] = "yes", ALL ( Sandee ) )
VAR No =
    CALCULATETABLE ( Sandee, Sandee[Debt Overdue] = "no", ALL ( Sandee ) )
VAR CurrentSelection =
    SELECTEDVALUE ( Sandee[Debt Overdue] )
VAR Ranking =
    IF (
        CurrentSelection = "yes",
        RANKX ( Yes, [Total Due],, DESC ),
        RANKX ( No, [Total Due],, DESC )
    )
VAR Result =
    IF ( ISINSCOPE ( Sandee[Debt Overdue] ), Ranking )
RETURN
    Result
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 10:07:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348891#M24224</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-09-05T10:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348936#M24229</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the reference,&lt;/P&gt;&lt;P&gt;it seems nothing is working here, i am not getting the desired output. working on one formula from almost one week, really Fed up.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 12:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348936#M24229</guid>
      <dc:creator>sandee</dc:creator>
      <dc:date>2020-09-05T12:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348948#M24230</link>
      <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="139013" data-lia-user-login="sandee" class="lia-mention lia-mention-user"&gt;sandee&lt;/a&gt; does my solution work for you?</description>
      <pubDate>Sat, 05 Sep 2020 12:44:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348948#M24230</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-09-05T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348949#M24231</link>
      <description>&lt;P&gt;Hi Antriksh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Super Duper Shot ........ Great ......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the file u attached this is exactly i am after, i have not applied in my file as it seems stuck, but i will get back to you on this. Many Many thanks for this.&amp;nbsp; God Bless You....&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 12:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348949#M24231</guid>
      <dc:creator>sandee</dc:creator>
      <dc:date>2020-09-05T12:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348997#M24235</link>
      <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="139013" data-lia-user-login="sandee" class="lia-mention lia-mention-user"&gt;sandee&lt;/a&gt; Great, once you are able to replicate the same in your model and have no issues, then please mark my post as solved so that others can easily find the solution. Otherwise let me know if you still face any issue.</description>
      <pubDate>Sat, 05 Sep 2020 13:55:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1348997#M24235</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-09-05T13:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1349151#M24238</link>
      <description>&lt;P&gt;Hi Antriksh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While accepting this as my solution i AM getting below error message again and again. i have checked everything is fine, but still same.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 17:39:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1349151#M24238</guid>
      <dc:creator>sandee</dc:creator>
      <dc:date>2020-09-05T17:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1349158#M24239</link>
      <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="139013" data-lia-user-login="sandee" class="lia-mention lia-mention-user"&gt;sandee&lt;/a&gt;, no problem, I will do it on your behalf &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Sat, 05 Sep 2020 17:55:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1349158#M24239</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-09-05T17:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: RANX Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1349732#M24272</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="139013" data-lia-user-login="sandee" class="lia-mention lia-mention-user"&gt;sandee&lt;/a&gt;&amp;nbsp; File is attached below my signature. You also need to work on your data model, many to many relationships is not a good thing.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 =
VAR vTableWithout_DebtOverdueColumn =
    CALCULATETABLE (
        SUMMARIZE (
            'Working ledger',
            'Working ledger'[Cust Name],
            'Working ledger'[Cust. No.]
        ),
        ALLSELECTED ( 'Working ledger' )
    )
VAR vTableWith_DebtOverdueColumn =
    CALCULATETABLE (
        SUMMARIZE (
            'Working ledger',
            'Working ledger'[Cust Name],
            'Working ledger'[Cust. No.],
            'Working ledger'[Debt overdue]
        ),
        ALLSELECTED ( 'Working ledger' )
    )
VAR FullRanking =
    RANKX ( vTableWith_DebtOverdueColumn, [Amount Due],, DESC, SKIP )
VAR PartialRanking =
    RANKX ( vTableWithout_DebtOverdueColumn, [Amount Due],, DESC, SKIP )
VAR DebtOverDueColumnIncluded =
    ISINSCOPE ( 'Working ledger'[Debt overdue] )
VAR HideRankFromGrandTotal =
    ISINSCOPE ( 'Working ledger'[Cust Name] )
        || ISINSCOPE ( 'Working ledger'[Cust. No.] )
VAR Result =
    IF (
        HideRankFromGrandTotal,
        IF ( DebtOverDueColumnIncluded, FullRanking, PartialRanking )
    )
RETURN
    Result
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 13:23:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANX-Function/m-p/1349732#M24272</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-09-06T13:23:16Z</dc:date>
    </item>
  </channel>
</rss>

