<?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: TopN with Multiple Dimensions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/996340#M12511</link>
    <description>&lt;P&gt;Thank you very much, D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also got the following solution from another site that worked well too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rank Stores = VAR Top5Stores = CALCULATETABLE ( TOPN ( 5, CALCULATETABLE ( VALUES ( Locations[Store Name] ) ), [Weeks of Sales] ), ALLSELECTED() ) RETURN CALCULATE ( [Weeks of Sales], KEEPFILTERS ( Top5Stores ) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Phil&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Mar 2020 06:22:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-28T06:22:26Z</dc:date>
    <item>
      <title>TopN with Multiple Dimensions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/994425#M12424</link>
      <description>&lt;P&gt;Hi there clever people!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a ranking situation that I am trying to solve and have approached it from 5 different ways and reach the same result every time, so I may be about to go insane.&amp;nbsp; Hopefully, someone can help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to Rank the Top 5 retail stores by WOS (weeks of Supply) using TopN (but I have tried Rankx as well without success) that is a simple calculation of average stock on hand divided by the average sales over the past 4-weeks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The initial ranking works well (I can see the top 5 stores) but it falls apart when I bring in a second dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to see the weeks of supply for these top 5 stores with the associated product price tier, however, as soon as I add the price tier to the visual I get other stores too because it pulls in the top 5 price tiers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model can be found here: &lt;A href="https://drive.google.com/file/d/1vnNplHUeSV2o19D08bFDou6EBoPNxyjO/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1vnNplHUeSV2o19D08bFDou6EBoPNxyjO/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need more information to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 02:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/994425#M12424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-27T02:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: TopN with Multiple Dimensions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/996140#M12496</link>
      <description>&lt;P&gt;Here's the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 22:16:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/996140#M12496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-27T22:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: TopN with Multiple Dimensions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/996340#M12511</link>
      <description>&lt;P&gt;Thank you very much, D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also got the following solution from another site that worked well too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rank Stores = VAR Top5Stores = CALCULATETABLE ( TOPN ( 5, CALCULATETABLE ( VALUES ( Locations[Store Name] ) ), [Weeks of Sales] ), ALLSELECTED() ) RETURN CALCULATE ( [Weeks of Sales], KEEPFILTERS ( Top5Stores ) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Phil&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 06:22:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/996340#M12511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-28T06:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: TopN with Multiple Dimensions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/996387#M12515</link>
      <description>Well, my solution has the advantage that it can be used in ANY visual and restrict stores even if other measures used in there return values for all stores.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Sat, 28 Mar 2020 09:05:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/996387#M12515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-28T09:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: TopN with Multiple Dimensions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/2825116#M89803</link>
      <description>&lt;P&gt;Can you share the website where you got this solution?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:52:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-Multiple-Dimensions/m-p/2825116#M89803</guid>
      <dc:creator>vinayakaggrawal</dc:creator>
      <dc:date>2022-10-07T08:52:33Z</dc:date>
    </item>
  </channel>
</rss>

