<?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 Issues with rankx in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3640374#M140929</link>
    <description>&lt;P&gt;Hello. I have 5 product categories and i want to rank them from 1 to 5 according to their sales but the data integrity is not accurate 100% and I would like to ask for some help.&lt;/P&gt;&lt;P&gt;This is my dax function for the Sum:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SumOrders =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FactOrders&lt;/SPAN&gt;&lt;SPAN&gt;[Total]&lt;/SPAN&gt;&lt;SPAN&gt;)), &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FactOrders&lt;/SPAN&gt;&lt;SPAN&gt;[Total]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rankx dax:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sales Amount Product Category Rank =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;dimProducts&lt;/SPAN&gt;&lt;SPAN&gt;[Category_Name]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[SumOrders]&lt;/SPAN&gt;&lt;SPAN&gt;,, &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Store Rank Text =&lt;/SPAN&gt; &lt;SPAN&gt;[Sales Amount Product Category Rank]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" of "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;this is the full display of the ranks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I will pick components and clothing both of them will have rank 3&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;how can I solve this issue?? Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 16 Jan 2024 07:45:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-16T07:45:24Z</dc:date>
    <item>
      <title>Issues with rankx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3640374#M140929</link>
      <description>&lt;P&gt;Hello. I have 5 product categories and i want to rank them from 1 to 5 according to their sales but the data integrity is not accurate 100% and I would like to ask for some help.&lt;/P&gt;&lt;P&gt;This is my dax function for the Sum:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SumOrders =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FactOrders&lt;/SPAN&gt;&lt;SPAN&gt;[Total]&lt;/SPAN&gt;&lt;SPAN&gt;)), &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FactOrders&lt;/SPAN&gt;&lt;SPAN&gt;[Total]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rankx dax:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sales Amount Product Category Rank =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;dimProducts&lt;/SPAN&gt;&lt;SPAN&gt;[Category_Name]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[SumOrders]&lt;/SPAN&gt;&lt;SPAN&gt;,, &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Store Rank Text =&lt;/SPAN&gt; &lt;SPAN&gt;[Sales Amount Product Category Rank]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" of "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;this is the full display of the ranks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I will pick components and clothing both of them will have rank 3&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;how can I solve this issue?? Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jan 2024 07:45:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3640374#M140929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-16T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with rankx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3641968#M141000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;try to replace part ALL in&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dimProducts&lt;/SPAN&gt;&lt;SPAN&gt;[Category_Name]&lt;/SPAN&gt;&lt;SPAN&gt;) with&amp;nbsp;ALLSELECTED&amp;nbsp;(&amp;nbsp;dimProducts[Category_Name])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 21:45:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3641968#M141000</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-01-16T21:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with rankx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642593#M141023</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;Based on the information you provided, you can follow this step below:&lt;BR /&gt;1.Add new measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales Amount Product Category Rank = 
RANKX (
    FILTER ( ALL ( 'Table' ), 'Table'[orders] ),
    CALCULATE ( MAX ( 'Table'[orders] ) ),
    ,
    DESC
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Store Rank Text = 
[Sales Amount Product Category Rank] &amp;amp; " of " &amp;amp; 5
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Ada Wang&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 05:44:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642593#M141023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T05:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with rankx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642824#M141036</link>
      <description>&lt;P&gt;it helps but for some reason i dont know how to adjust my table for your solution&lt;BR /&gt;I dont know how to upload the file ... I am new to this platform&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/groups/b19193eb-e902-4d4f-8151-d6dba74e6c6d/reports/017d5641-90c5-47bb-a0ff-bb8078fe69a6/ReportSection?experience=power-bi" target="_self"&gt;https://app.powerbi.com/groups/b19193eb-e902-4d4f-8151-d6dba74e6c6d/reports/017d5641-90c5-47bb-a0ff-bb8078fe69a6/ReportSection?experience=power-bi&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i hope this help somehow.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 07:22:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642824#M141036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T07:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with rankx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642825#M141037</link>
      <description>&lt;P&gt;unfortunately didnt help, it ranks every category as 1&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 07:16:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642825#M141037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T07:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with rankx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642872#M141042</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can p&lt;SPAN&gt;ut your files in a dropbox, onedrive or googledrive folder and share the link with the community. Please provide more details with your desired out put and pbix file without privacy information.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the related links for details:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Ada Wang&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 08:22:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642872#M141042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T08:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with rankx</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642952#M141044</link>
      <description>&lt;P&gt;its 119000 records so I cant do the sample data option&lt;/P&gt;&lt;P&gt;this is the file via my google drive:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1BnhIMW-kr5ZTIXw49ga2gLCakG1MWB5_/view?usp=drive_link" target="_blank"&gt;https://drive.google.com/file/d/1BnhIMW-kr5ZTIXw49ga2gLCakG1MWB5_/view?usp=drive_link&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 08:07:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-rankx/m-p/3642952#M141044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T08:07:41Z</dc:date>
    </item>
  </channel>
</rss>

