<?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: Ranking by Region/Product Category/SKU in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-by-Region-Product-Category-SKU/m-p/3476698#M132815</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total sales: = 
SUM( Sales[Sales] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rank expected: = 
RANK (
    SKIP,
    SUMMARIZE (
        ALL ( Sales ),
        Location[Region],
        'Product'[Product],
        'Product'[SKU]
    ),
    ORDERBY ( [Total sales:], DESC ),
    DEFAULT,
    PARTITIONBY ( Location[Region] )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 14 Oct 2023 10:02:36 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2023-10-14T10:02:36Z</dc:date>
    <item>
      <title>Ranking by Region/Product Category/SKU</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-by-Region-Product-Category-SKU/m-p/3476029#M132784</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hello reposting this as previous solution did not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to write a dax query, something using Rankx and windows function to get a table that will give me rank for each SKU'sales&amp;nbsp; based on the category and region filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sales( has SKU,location and Sales)&lt;/LI&gt;&lt;LI&gt;Location(has location with region)&lt;/LI&gt;&lt;LI&gt;Product(which has Product and SKU)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;linked to each(Sales table linked to Region by location code, Sales linked to Product by SKU and used to calculate the total sales.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the rank of each SKU by Product and Region and display then in ascending order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ekta&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/42973" target="_blank" rel="noopener"&gt;@Zubair_Muhammad&lt;/A&gt;&amp;nbsp;I saw that you solved a similar problem but it did not work for me. Could you tell me how to go about this one? Would be a great help!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Oct 2023 16:41:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-by-Region-Product-Category-SKU/m-p/3476029#M132784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-13T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking by Region/Product Category/SKU</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-by-Region-Product-Category-SKU/m-p/3476698#M132815</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total sales: = 
SUM( Sales[Sales] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rank expected: = 
RANK (
    SKIP,
    SUMMARIZE (
        ALL ( Sales ),
        Location[Region],
        'Product'[Product],
        'Product'[SKU]
    ),
    ORDERBY ( [Total sales:], DESC ),
    DEFAULT,
    PARTITIONBY ( Location[Region] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 14 Oct 2023 10:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-by-Region-Product-Category-SKU/m-p/3476698#M132815</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-10-14T10:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking by Region/Product Category/SKU</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-by-Region-Product-Category-SKU/m-p/3479182#M132977</link>
      <description>&lt;P&gt;Thanks a ton! Works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 14:58:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-by-Region-Product-Category-SKU/m-p/3479182#M132977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-16T14:58:59Z</dc:date>
    </item>
  </channel>
</rss>

