<?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: Top 10 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-10/m-p/1251330#M20625</link>
    <description>&lt;P&gt;This is an expression that returns a 10-row table, so it will error in a measure expression.&amp;nbsp; To get the list of your Top 10, you can use CONCATENATEX, but I am not sure if that is what you need.&amp;nbsp; You can change the Return in your expression to the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Return CONCATENATEX(SumFiltered,&amp;nbsp;&lt;SPAN&gt;COMT04 [C76CODCOM])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to omit the top 1, you can do a TOPN(9, SumFiltered, [TotCom], ASC), and then do CONCATENATEX on that table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2020 01:45:59 GMT</pubDate>
    <dc:creator>mahoneypat</dc:creator>
    <dc:date>2020-07-27T01:45:59Z</dc:date>
    <item>
      <title>Top 10</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-10/m-p/1251210#M20619</link>
      <description>&lt;P&gt;Hello I would like to get the top 10 of my collected commissions, but I also want to prevent the number 1 from appearing, since it is not identified.&lt;/P&gt;&lt;P&gt;The formula I use is:&lt;/P&gt;&lt;P&gt;M_Top10 =&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; VAR ComPorTipo =&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUMMARIZE (&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COMT04,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COMT04 [C76CODCOM],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"TotCom", SUM (COMT04 [C76IMPRE01]) )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; VAR SumFiltered =&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TOPN(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComPorTipo,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [TotCom]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RETURN SumFiltered&lt;/P&gt;&lt;P&gt;However it gives error: "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."&lt;/P&gt;&lt;P&gt;I will appreciate your help for these two queries.&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 22:39:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-10/m-p/1251210#M20619</guid>
      <dc:creator>Guille2711410</dc:creator>
      <dc:date>2020-07-26T22:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-10/m-p/1251330#M20625</link>
      <description>&lt;P&gt;This is an expression that returns a 10-row table, so it will error in a measure expression.&amp;nbsp; To get the list of your Top 10, you can use CONCATENATEX, but I am not sure if that is what you need.&amp;nbsp; You can change the Return in your expression to the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Return CONCATENATEX(SumFiltered,&amp;nbsp;&lt;SPAN&gt;COMT04 [C76CODCOM])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to omit the top 1, you can do a TOPN(9, SumFiltered, [TotCom], ASC), and then do CONCATENATEX on that table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 01:45:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-10/m-p/1251330#M20625</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-07-27T01:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-10/m-p/1251388#M20628</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="149283" data-lia-user-login="Guille2711410" class="lia-mention lia-mention-user"&gt;Guille2711410&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;Top 10 City Rank = CALCULATE([Sales],TOPN(10,all(Geography[City]),[Sales],DESC),VALUES(Geography[City Id]))&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 02:24:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-10/m-p/1251388#M20628</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-27T02:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-10/m-p/1251473#M20631</link>
      <description>Excellent!!! All ok Thank you very much amitchandak and also for my previous query Guille</description>
      <pubDate>Mon, 27 Jul 2020 03:06:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-10/m-p/1251473#M20631</guid>
      <dc:creator>Guille2711410</dc:creator>
      <dc:date>2020-07-27T03:06:48Z</dc:date>
    </item>
  </channel>
</rss>

