<?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 Returns 1  Both All and ALLSELECT do not work in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637574#M33239</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 04:18:50 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-02-02T04:18:50Z</dc:date>
    <item>
      <title>RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637232#M33232</link>
      <description>&lt;P&gt;hi experienced users,&lt;/P&gt;&lt;P&gt;i have tried my rankx using many tips from the forum but they still return 1 and i m sure there must be something wrong somewhere. Can you please help me have a look at the issue that i have been experiencing (sorry i am unable to attach the same file, the department locked it even though i have changed the data). My goal is to rank No.Trans column and it keeps coming back with 1.&lt;/P&gt;&lt;P&gt;my dax is :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ranking by No.Trans = RANKX(ALL(dataextract1),CALCULATE(COUNTX(dataextract1,dataextract1[No.Trans])),,DESC)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks heaps&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Feb 2021 01:21:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637232#M33232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-02T01:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637391#M33235</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , is card holder and unit name both from the same table. if not you can face an issue like that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try like this and check&lt;/P&gt;
&lt;P&gt;Ranking by No.Trans = RANKX(ALLselected(dataextract1[cardHolder],dataextract1[UnitName]),CALCULATE(COUNTX(dataextract1,dataextract1[No.Trans])),,DESC)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 02:33:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637391#M33235</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-02T02:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637550#M33238</link>
      <description>&lt;P&gt;Thanks Amit,&lt;/P&gt;&lt;P&gt;The data is from the same table (see the screenshot) and i have tried your calculation, Still showing 1.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 04:06:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637550#M33238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-02T04:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637574#M33239</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 04:18:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637574#M33239</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-02T04:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637630#M33240</link>
      <description>&lt;P&gt;Thanks Amit! i am not sure if this works.. Can you let me know if you have any problem accessing&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/groups/me/dashboards/8f02db35-5b44-4c49-8564-ed04617ec471?ctid=4e3b95cb-ee21-4049-9604-bd201ffbcf8b" target="_blank"&gt;https://app.powerbi.com/groups/me/dashboards/8f02db35-5b44-4c49-8564-ed04617ec471?ctid=4e3b95cb-ee21-4049-9604-bd201ffbcf8b&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 04:55:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637630#M33240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-02T04:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637651#M33241</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thankyou, i hope you can open it&amp;nbsp;&lt;A href="https://app.powerbi.com/groups/me/dashboards/8f02db35-5b44-4c49-8564-ed04617ec471?ctid=4e3b95cb-ee21-4049-9604-bd201ffbcf8b" target="_blank"&gt;https://app.powerbi.com/groups/me/dashboards/8f02db35-5b44-4c49-8564-ed04617ec471?ctid=4e3b95cb-ee21-4049-9604-bd201ffbcf8b&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 05:12:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637651#M33241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-02T05:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637755#M33242</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , this is on power bi service. You can share within the organization or make it public.&amp;nbsp; Please upload on dropbox and onedrive and share the link. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 06:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637755#M33242</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-02T06:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637770#M33243</link>
      <description>&lt;P&gt;Thanks Amit, I have tried all the way you suggested and also referred to the article you shared and it is still not working. The calculation that i tried is&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ranking by No.Trans = RANKX(ALLSELECTED(dataextract1[Cardholder],dataextract1[Unit Name]),CALCULATE(COUNTX(dataextract1,dataextract1[No.Trans])),,DESC)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Anyone can try and give me some advice please..&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1lz9y8--z1Bul46oJ5BfF0wpsYp3cQpu0/view?usp=drivesdk" target="_blank"&gt;https://drive.google.com/file/d/1lz9y8--z1Bul46oJ5BfF0wpsYp3cQpu0/view?usp=drivesdk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1LYTKq1LHiwYUiFO_DNfBqSdI13Vn6OFM/view?usp=drivesdk" target="_blank"&gt;https://drive.google.com/file/d/1LYTKq1LHiwYUiFO_DNfBqSdI13Vn6OFM/view?usp=drivesdk&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Feb 2021 01:00:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637770#M33243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-03T01:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637788#M33244</link>
      <description>&lt;P&gt;The data looks very simple like this and all i m trying to do is to ranks the cardholder based on No.Trans. It still returns 1 for all rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 06:20:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637788#M33244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-02T06:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637876#M33245</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , the thing to remember is that if the only rank(measure rank) on cardholders name and use any other column, rank will be inside that. If you take table and if the cardholder is not part of the unique key it will not guarantee the correct rank &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assume No. Trans is measure&amp;nbsp; = calculate(count(Table[transaction])&lt;/P&gt;
&lt;P&gt;cardholder Rank = RANKX(all(Table[cardholder]),[No. Trans])&amp;nbsp; // with school might not work &lt;BR /&gt;Table Rank = RANKX(all(Table),[No. Trans]) // at lowest level &lt;BR /&gt;cardholder School Rank = RANKX(all(Table[cardholder],Geography[School Name]),[No. Trans]) // will work with cardholder and school name &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-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;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 06:52:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1637876#M33245</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-02T06:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1640322#M33303</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1lz9y8--z1Bul46oJ5BfF0wpsYp3cQpu0/view?usp=drivesdk" target="_blank"&gt;https://drive.google.com/file/d/1lz9y8--z1Bul46oJ5BfF0wpsYp3cQpu0/view?usp=drivesdk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Amit, i have tried many ways and still can't attache pbix file, the department locked it even though it is just a mock data. I have used my gmail drive to save down the raw data, can you see if you can open it as i am really hoping to get the issue resolved with Ranking in powerbi. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 00:30:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1640322#M33303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-03T00:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX Returns 1  Both All and ALLSELECT do not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1640326#M33305</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;i still can't send PBIX file using different ways, the department blocked it given that it is just mock data. I am using my personal gmail drive to save down the data, let me know if you can access it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really hope to get the Ranking in powerbi work for my case...&lt;/P&gt;&lt;P&gt;&lt;A title="Rankx Issue" href="https://drive.google.com/file/d/1lz9y8--z1Bul46oJ5BfF0wpsYp3cQpu0/view?usp=drivesdk" target="_self"&gt;Mock Data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 00:32:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-Returns-1-Both-All-and-ALLSELECT-do-not-work/m-p/1640326#M33305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-03T00:32:11Z</dc:date>
    </item>
  </channel>
</rss>

