<?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 ordered by Text in Category in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-ordered-by-Text-in-Category/m-p/1603984#M32183</link>
    <description>&lt;P&gt;Hello Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Rank = 
RANKX (
    FILTER ('Table', 'Table'[Category] = EARLIER('Table'[Category]) ), -- Grouping Column
    'Table'[Name],                                                     -- Sorting Column
    , ASC
)&lt;/LI-CODE&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>Sun, 17 Jan 2021 18:24:03 GMT</pubDate>
    <dc:creator>themistoklis</dc:creator>
    <dc:date>2021-01-17T18:24:03Z</dc:date>
    <item>
      <title>RankX ordered by Text in Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-ordered-by-Text-in-Category/m-p/1603946#M32179</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Is it possible to make RankX column ordered by Name in Category&lt;BR /&gt;like in the picture&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My try is not working...&lt;BR /&gt;&lt;BR /&gt;Name_Rank =&lt;BR /&gt;RANKX(&lt;BR /&gt;FILTER('Table','Table'[name]=EARLIER('Table'[name])),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;max(&lt;BR /&gt;'Table'[name]&lt;BR /&gt;),&lt;BR /&gt;ALLEXCEPT(Table,Table[category],Table[name])&lt;BR /&gt;),,DESC,Dense&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;What I need to insert in Calculate ??&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 16:44:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-ordered-by-Text-in-Category/m-p/1603946#M32179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-17T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: RankX ordered by Text in Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-ordered-by-Text-in-Category/m-p/1603984#M32183</link>
      <description>&lt;P&gt;Hello Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Rank = 
RANKX (
    FILTER ('Table', 'Table'[Category] = EARLIER('Table'[Category]) ), -- Grouping Column
    'Table'[Name],                                                     -- Sorting Column
    , ASC
)&lt;/LI-CODE&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>Sun, 17 Jan 2021 18:24:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-ordered-by-Text-in-Category/m-p/1603984#M32183</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-01-17T18:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: RankX ordered by Text in Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-ordered-by-Text-in-Category/m-p/1604018#M32188</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;This good solution, but I have other columns in the table (this table only an example)&lt;BR /&gt;So I think needs to be any "all" function in the "calculate" function, but in calculate is possible using only aggregation...&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 19:23:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-ordered-by-Text-in-Category/m-p/1604018#M32188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-17T19:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: RankX ordered by Text in Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-ordered-by-Text-in-Category/m-p/1604031#M32189</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;You can try the following measure:&lt;/P&gt;&lt;P&gt;If you want to add more filters make sure you declare the variable on top and then insert it in the ALLSELECTED area.&lt;/P&gt;&lt;P&gt;The following returns the same results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Sorting Rank = 
VAR _category = MAX ('Table'[Category] )
--VAR _secondvariable = MAX ( Sheet1[p_type] )
Return
    RANKX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Category] = _category
  --              &amp;amp;&amp;amp; Sheet1[p_type] = current_type
        ),
        CALCULATE ( MAX ( 'Table'[name] ) ),
        ,
        ASC,
        DENSE
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 19:51:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-ordered-by-Text-in-Category/m-p/1604031#M32189</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-01-17T19:51:19Z</dc:date>
    </item>
  </channel>
</rss>

