<?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 when “Product” appears on multiple rows? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3089205#M108128</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;may we ask you to shed some light on this challenge?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 02:24:02 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-02-21T02:24:02Z</dc:date>
    <item>
      <title>RANKX when “Product” appears on multiple rows?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3086709#M107952</link>
      <description>&lt;P&gt;How do I get RANKX to work on filtered data source where same product appears on multiple&amp;nbsp;rows?&lt;/P&gt;&lt;P&gt;In this Excel example, the data loads easily into a pivot table for the desired result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As you can see, Banana ranked #2 in the WEST, but #3 in the EAST.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing in my RANKX calculated measure?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$ RANK = RANKX(ALLSELECTED(ItemRANK[Product]), SUM(ItemRANK[Dol$ Sales]), ,DESC)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I want to be able to filter on different Time Period, different Geography, different Brands&amp;nbsp;and rank to change based on slicer/filtering. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 21:34:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3086709#M107952</guid>
      <dc:creator>Kirk_1</dc:creator>
      <dc:date>2023-02-19T21:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX when “Product” appears on multiple rows?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3086801#M107956</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="517347" data-lia-user-login="Kirk_1" class="lia-mention lia-mention-user"&gt;Kirk_1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;P&gt;$ RANK = RANKX(ALLSELECTED(ItemRANK[Product]), &lt;STRONG&gt;CALCULATE&lt;/STRONG&gt;(SUM(ItemRANK[Dol$ Sales])), ,DESC)&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 23:48:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3086801#M107956</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-19T23:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX when “Product” appears on multiple rows?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3086864#M107958</link>
      <description>&lt;P&gt;Hi FreemanZ&lt;/P&gt;&lt;P&gt;That helped, but the rank result is not correct when filtered or unfiltered.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 00:56:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3086864#M107958</guid>
      <dc:creator>Kirk_1</dc:creator>
      <dc:date>2023-02-20T00:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX when “Product” appears on multiple rows?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3088898#M108112</link>
      <description>&lt;P&gt;&lt;A title="Here is a WeTransfer link to the sample .pbix file" href="https://we.tl/t-8hDoxhVn2j" target="_self"&gt;https://we.tl/t-8hDoxhVn2j&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 21:45:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3088898#M108112</guid>
      <dc:creator>Kirk_1</dc:creator>
      <dc:date>2023-02-20T21:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX when “Product” appears on multiple rows?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3089205#M108128</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;may we ask you to shed some light on this challenge?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 02:24:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3089205#M108128</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-21T02:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX when “Product” appears on multiple rows?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3089780#M108189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Not 100% sure what exactly&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="517347" data-lia-user-login="Kirk_1" class="lia-mention lia-mention-user"&gt;Kirk_1&lt;/a&gt;'s requirement is but below I'm proposing two options&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 08:40:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3089780#M108189</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-21T08:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX when “Product” appears on multiple rows?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3090627#M108255</link>
      <description>&lt;P&gt;Hello @tarmerj1&lt;/P&gt;&lt;P&gt;THANK YOU!&amp;nbsp; Both of your options work, but option 1 is my desired result.&lt;/P&gt;&lt;P&gt;I am going to use:&lt;/P&gt;&lt;P&gt;$ RANK = RANKX(ALLSELECTED(ItemRANK), CALCULATE(SUM(ItemRANK[Dol$ Sales])), ,DESC)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fix was to remove [Product] from ALLSELECTED. Thanks @tarmerj1 and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;, much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 14:48:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-when-Product-appears-on-multiple-rows/m-p/3090627#M108255</guid>
      <dc:creator>Kirk_1</dc:creator>
      <dc:date>2023-02-21T14:48:58Z</dc:date>
    </item>
  </channel>
</rss>

