<?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: LARGE in Quick Measures Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/LARGE/m-p/3091511#M953</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks! This works with a couple of modifications for the purpose I need, so it can be listed in a table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below for anyone interested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LARGE 3 = 
    VAR __k = [k Value]
    VAR __Sorted = CONCATENATEX('Table', [Value], "|",[Value],DESC)
    VAR __Table = 
        ADDCOLUMNS(
            'Table', 
            "__Series" GENERATESERIES(1,COUNTROWS('Table'),1),
            "__Value", PATHITEM(__Sorted,__k)
        )
    VAR __Result = MAXX(FILTER(__Table, __k = __k),[__Value])
RETURN
    __Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 22:38:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-21T22:38:18Z</dc:date>
    <item>
      <title>LARGE</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/LARGE/m-p/1076232#M505</link>
      <description>&lt;P&gt;&lt;A title="" href="https://community.powerbi.com/t5/Community-Blog/Excel-to-DAX-Translation/ba-p/1060991" target="_self"&gt;In my recent quest to create or catalog as many DAX equivalents for Excel functions&lt;/A&gt;&lt;SPAN&gt;, we have now arrived at the double secret RANKX pattern. Nifty.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LARGE = 
    VAR __k = [k Value]
    VAR __Table =
        ADDCOLUMNS(
            'Table',
            "Rank",RANKX('Table',[Value])
        )
    VAR __RanksTable = DISTINCT(SELECTCOLUMNS(__Table,"Rank",[Rank]))
    VAR __RanksTable1 = 
        ADDCOLUMNS(
            __RanksTable,
            "LargeRank",RANKX(__RanksTable,[Rank],,ASC)
        )
    VAR __Rank = MAXX(FILTER(__RanksTable1,[LargeRank] = __k),[Rank])
RETURN
    MAXX(FILTER(__Table,[Rank]=__Rank),[Value])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiOGI3ZGE2NjUtZTNmYi00ZmFhLWEwYzAtOWNhZWU2NjVmZmU2IiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 14:13:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/LARGE/m-p/1076232#M505</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-06T14:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: LARGE</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/LARGE/m-p/3090366#M951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This large function that you have build does not really function the same way as the large function i Excel. In Excel it returns the value in the row with the k highest value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to restructure your formula to get it to work in a similar to Excel by inserting an additional step of TopN, however, I can get it to work. - Do you have a solution to get the above to work in a similar way to Excel?&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;</description>
      <pubDate>Tue, 21 Feb 2023 12:59:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/LARGE/m-p/3090366#M951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-21T12:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: LARGE</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/LARGE/m-p/3090694#M952</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Here's the fix. Relies on a technique that I hadn't developed quite yet when I posted this. You can't get there with TOPN, RANKX, etc. because of the duplicates.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LARGE 2 = 
    VAR __k = [k Value]
    VAR __Sorted = CONCATENATEX('Table', [Value], "|",[Value],DESC)
    VAR __Table = 
        ADDCOLUMNS(
            GENERATESERIES(1,COUNTROWS('Table'),1),
            "__Value", PATHITEM(__Sorted,[Value])
        )
    VAR __Result = MAXX(FILTER(__Table, [Value] = [k Value]),[__Value])
RETURN
    __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:18:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/LARGE/m-p/3090694#M952</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-02-21T15:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: LARGE</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/LARGE/m-p/3091511#M953</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks! This works with a couple of modifications for the purpose I need, so it can be listed in a table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below for anyone interested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LARGE 3 = 
    VAR __k = [k Value]
    VAR __Sorted = CONCATENATEX('Table', [Value], "|",[Value],DESC)
    VAR __Table = 
        ADDCOLUMNS(
            'Table', 
            "__Series" GENERATESERIES(1,COUNTROWS('Table'),1),
            "__Value", PATHITEM(__Sorted,__k)
        )
    VAR __Result = MAXX(FILTER(__Table, __k = __k),[__Value])
RETURN
    __Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 22:38:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/LARGE/m-p/3091511#M953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-21T22:38:18Z</dc:date>
    </item>
  </channel>
</rss>

