<?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 showing incorrect result based on slicer selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-showing-incorrect-result-based-on-slicer-selection/m-p/2379262#M61419</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Hard to say, maybe this will help:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise,&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 16:50:07 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-03-07T16:50:07Z</dc:date>
    <item>
      <title>Rankx showing incorrect result based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-showing-incorrect-result-based-on-slicer-selection/m-p/2379243#M61417</link>
      <description>&lt;P&gt;HI Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently working on a Tableau to Power BI migration .&lt;/P&gt;&lt;P&gt;The Power BI report is built on Single Fact Table connected with date dimension table for time intelligence functions&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am using Rankx function(Measure)&amp;nbsp;to rank the "corporation" based on "sales/Unit" value, in two places&amp;nbsp;&lt;OL&gt;&lt;LI&gt;Overall rank (all region) - KPI&lt;/LI&gt;&lt;LI&gt;Each region wise rank&amp;nbsp; - In a table&lt;/LI&gt;&lt;LI&gt;using this formula . Rank = rankx(all('Table'[Corporation]),[sales/unit],[sales/unit])&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;"Sales/Unit" is a parameter , it is achieved by disconnected table .Created slicer using this. So if we select "Sales" it will give "Sales" value and "Units" it will give "Units"&lt;/LI&gt;&lt;LI&gt;"Sales/Unit" will change based on time intelligence functions "YTD/MAT/QTR"&lt;/LI&gt;&lt;LI&gt;The power BI file size is above 1 GB.(Used import mode )&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue:&amp;nbsp;&lt;/STRONG&gt;When Open the report with the default selection lets say - sales,YTD giving the correct rank but if we change the parameter to units , MAT - showing incorrect rank. so saved with this selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to open again - now the selection is units , MAT - it is showing the correct Rank . If we change it to some other parameter like Sales,QTR then incorrect rank showing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure this is some kind of bug or due to large data set size it is throwing incorrect result or something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if we have a solution for these issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Other than rank , every other kpi is showing correct result , only having issues with rankx function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Tried to check by creating rankx calculated column it was working fine but I cannot use dynamic measure sales/units. (which is the requirement)&lt;/P&gt;&lt;P&gt;*Tried to check by using sample data - it is working fine there as well. it is not working in actual dataset.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 16:48:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-showing-incorrect-result-based-on-slicer-selection/m-p/2379243#M61417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-07T16:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rankx showing incorrect result based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-showing-incorrect-result-based-on-slicer-selection/m-p/2379262#M61419</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Hard to say, maybe this will help:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise,&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 16:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-showing-incorrect-result-based-on-slicer-selection/m-p/2379262#M61419</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-03-07T16:50:07Z</dc:date>
    </item>
  </channel>
</rss>

