<?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 TopN with returns too much in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-returns-too-much/m-p/3150725#M112841</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use TopN for 2 it gives me more than 2 records back ... it gives me all the records that have one of the 2 maximum numbers. How can I restrict the output to 2? And if multiple values have the maximum number it should choose a random sample....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;A: 3&lt;BR /&gt;B: 7&lt;/P&gt;&lt;P&gt;C: 7&lt;BR /&gt;D : 7&amp;nbsp;&lt;/P&gt;&lt;P&gt;E: 4&lt;BR /&gt;-&amp;gt; Top 2 gives me C,D,B, E (because the 2 maximum numbers are 7 and 4)&amp;nbsp; but I just want C and D (or C and B ... does not matter, but just 2).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Anna&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 17:52:54 GMT</pubDate>
    <dc:creator>Anna123456</dc:creator>
    <dc:date>2023-03-23T17:52:54Z</dc:date>
    <item>
      <title>TopN with returns too much</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-returns-too-much/m-p/3150725#M112841</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use TopN for 2 it gives me more than 2 records back ... it gives me all the records that have one of the 2 maximum numbers. How can I restrict the output to 2? And if multiple values have the maximum number it should choose a random sample....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;A: 3&lt;BR /&gt;B: 7&lt;/P&gt;&lt;P&gt;C: 7&lt;BR /&gt;D : 7&amp;nbsp;&lt;/P&gt;&lt;P&gt;E: 4&lt;BR /&gt;-&amp;gt; Top 2 gives me C,D,B, E (because the 2 maximum numbers are 7 and 4)&amp;nbsp; but I just want C and D (or C and B ... does not matter, but just 2).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Anna&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 17:52:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-returns-too-much/m-p/3150725#M112841</guid>
      <dc:creator>Anna123456</dc:creator>
      <dc:date>2023-03-23T17:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: TopN with returns too much</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-returns-too-much/m-p/3150886#M112847</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521887" data-lia-user-login="Anna123456" class="lia-mention lia-mention-user"&gt;Anna123456&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, put the Top 2 Numbers into a table VAR (which will return 3 rows of Number 7).&lt;/P&gt;&lt;P&gt;Second, get the Top 2 Letters from the table VAR in Step 1 above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 21:47:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-returns-too-much/m-p/3150886#M112847</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-03-23T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: TopN with returns too much</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-returns-too-much/m-p/3151592#M112881</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 04:46:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-with-returns-too-much/m-p/3151592#M112881</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2023-03-24T04:46:30Z</dc:date>
    </item>
  </channel>
</rss>

