<?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: Why a calculated table can not be ranked with RANKX()? The result is 1 for every rows! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3359706#M126295</link>
    <description>&lt;P&gt;works perfectly, you are like a magician &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Thanks a lot&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 12:24:16 GMT</pubDate>
    <dc:creator>Yiyi</dc:creator>
    <dc:date>2023-08-01T12:24:16Z</dc:date>
    <item>
      <title>Why a calculated table can not be ranked with RANKX()? The result is 1 for every rows!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3359567#M126289</link>
      <description>&lt;P&gt;Hello friend,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you kindly help me to figure out how to rank a calculated table?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one table as my original table and based on the original table, I have created a new table to count unique values for each media. I have also added a rank for the new table. The DAX is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;SummarizedTable =
    ADDCOLUMNS(
        SUMMARIZE(
            ALLSELECTED(Data),
            Data[Media],
            "Unique_Item_Count", DISTINCTCOUNT(Data[HeadlineID])
        ),
        "Rank",
        RANKX(ALLSELECTED(Data[Media]), [Unique_Item_Count], , DESC,Dense)
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The result I got is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I really appreciate if you could help! Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 11:06:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3359567#M126289</guid>
      <dc:creator>Yiyi</dc:creator>
      <dc:date>2023-08-01T11:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why a calculated table can not be ranked with RANKX()? The result is 1 for every rows!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3359618#M126292</link>
      <description>&lt;P&gt;please try&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SummarizedTable = 
VAR _t =
        SUMMARIZE(
            ALLSELECTED('Table'),
            'Table'[Media],
            "Unique_Item_Count", SUM('Table'[Count])
        )
RETURN
ADDCOLUMNS(
    _t,
    "Rank",
    RANKX(_t,[Unique_Item_Count],,DESC,Dense)
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 11:26:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3359618#M126292</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-08-01T11:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why a calculated table can not be ranked with RANKX()? The result is 1 for every rows!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3359706#M126295</link>
      <description>&lt;P&gt;works perfectly, you are like a magician &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Thanks a lot&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 12:24:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3359706#M126295</guid>
      <dc:creator>Yiyi</dc:creator>
      <dc:date>2023-08-01T12:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why a calculated table can not be ranked with RANKX()? The result is 1 for every rows!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3360043#M126312</link>
      <description>&lt;P&gt;Hello thanks for your help again! I am trying to get the ranks for the running total calculation thus I need the ranks to be distinct number. I found somewhere saying that by using RAND() might help to achieve such result. Do you know how to do it? Thanks a millions time!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:51:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3360043#M126312</guid>
      <dc:creator>Yiyi</dc:creator>
      <dc:date>2023-08-01T15:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why a calculated table can not be ranked with RANKX()? The result is 1 for every rows!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3360045#M126313</link>
      <description>&lt;P&gt;SummarizedTable = VAR _t= SUMMARIZE( ALLSELECTED('Main Data'), 'Main Data'[Media], "Unique_Item_Count", DISTINCTCOUNT('Main Data'[HeadlineID]) ) RETURN RANKX(_t,[Unique_Item_Count]+RAND(),,DESC,Dense)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:52:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3360045#M126313</guid>
      <dc:creator>Yiyi</dc:creator>
      <dc:date>2023-08-01T15:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why a calculated table can not be ranked with RANKX()? The result is 1 for every rows!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3360062#M126315</link>
      <description>&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;If you are having trouble with dense and having same rank , it is true you can use rand() which will add a decimal to the total value so [unique measure] + rand() should lpwer the change to get same rank&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:58:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-a-calculated-table-can-not-be-ranked-with-RANKX-The-result/m-p/3360062#M126315</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-08-01T15:58:04Z</dc:date>
    </item>
  </channel>
</rss>

