<?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: Show top n and &amp;quot;others&amp;quot; values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144244#M17191</link>
    <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2020 12:03:34 GMT</pubDate>
    <dc:creator>stevedep</dc:creator>
    <dc:date>2020-06-05T12:03:34Z</dc:date>
    <item>
      <title>Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144121#M17182</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a measure that returns the top 5 values ranked by [measure] and the sum of the others in the same graphic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table columns are (granularity order ID):&lt;/P&gt;&lt;P&gt;&amp;nbsp;- order ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;- sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;- quantity&lt;/P&gt;&lt;P&gt;&amp;nbsp;- product name&lt;/P&gt;&lt;P&gt;and more metrics like order date, state, etc&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The issue is that the [measure] I want to call to rank is switching metrics between sales and quantity, so it is hard to work on a calculated column;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moreover I would like the result to be dynamically filtered by other dim.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 10:49:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144121#M17182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-05T10:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144182#M17184</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Rank-top-10-city-amp-rest-should-be-display-as-others/m-p/1143765#M519171" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Rank-top-10-city-amp-rest-should-be-display-as-others/m-p/1143765#M519171&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 11:09:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144182#M17184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-05T11:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144242#M17190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for the reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had already seen that solution but it cannot solve my issue because the calculated column is static and doesn't refer to the measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried something like this&amp;nbsp;&lt;A href="https://www.minceddata.info/2018/06/06/topsomething-and-all-the-rest-called-other/" target="_blank"&gt;https://www.minceddata.info/2018/06/06/topsomething-and-all-the-rest-called-other/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it gives me an error&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 12:02:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144242#M17190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-05T12:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144244#M17191</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 12:03:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144244#M17191</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-05T12:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144306#M17194</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you pls share same data and formula of your measure .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 12:29:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144306#M17194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-05T12:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144414#M17200</link>
      <description>&lt;P&gt;My table is like:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Order ID&lt;/TD&gt;&lt;TD&gt;Product Name&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;Profit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Bike&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Ball&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Bike&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Bike&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;Table&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have create this [measure] that, as the user select sales/profit, it returns total sales or total profit;&amp;nbsp;&lt;BR /&gt;What I want to do is create a measure that can show the top 5 products and the others total value in the same graphic and can change the values related on what the user select in the first [measure].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 13:34:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144414#M17200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-05T13:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144443#M17202</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are Sales and Profit measures or Column,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if they are measure, how can a user Select Sales or Profit. Do you have a different table for selection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;HN&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 13:48:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144443#M17202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-05T13:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144453#M17203</link>
      <description>&lt;P&gt;Yes well:&lt;/P&gt;&lt;P&gt;sales and profit are columns&lt;/P&gt;&lt;P&gt;for the selection I've create a disconnected table with only two data, "Total sales" (type: abc) and "Total profit" (type: abc), connected to the relative measure ( just a sum) so that, thanks to a switch, the user can select a word in the dashboard that changes the values due tu the context;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this scenario I want to create the topx and others graphic.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 13:56:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144453#M17203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-05T13:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144817#M17222</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got it working like described in the article you shared, which is very impressively done by that guy! Wow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the table you provided and added a few more rows. Below you see it working for a top 2 scenario.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;topnmeasure = 
var __top = CALCULATETABLE(TOPN(2;VALUES('Table'[Product Name]);CALCULATE(SUM('Table'[Sales]))))
var __other = ROW("Product Name";"Other")
var __allTheRest = CALCULATE(SUM('Table'[Sales]);EXCEPT(VALUES('Table'[Product Name]);__top))
var __theUnion = UNION(__top;__other)
var __selectedproduct = SELECTEDVALUE('Table (2)'[Product Name];"Multiple")
return
//CONCATENATEX(__top;[Product Name] &amp;amp; "m: " &amp;amp; [Measure])
//CONCATENATEX(__theUnion;[Product Name] &amp;amp; " m:" &amp;amp; [Measure])
//CONCATENATEX(INTERSECT('Table (2)';__theUnion);[Product Name] &amp;amp; " m:" &amp;amp; [Measure]) // it now has the top products and the other category
SUMX(INTERSECT('Table (2)';__theUnion); IF('Table (2)'[Product Name]&amp;lt;&amp;gt;"Other"; CALCULATE(SUM('Table'[Sales]);'Table'[Product Name]=__selectedproduct);__allTheRest))&lt;/LI-CODE&gt;&lt;P&gt;Link to the Power BI file &lt;A href="https://1drv.ms/u/s!AvU6hhKLfmEcgdgIufvtwIVfbIXpWQ?e=aWn5ft" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope this helps to move you forward, if so please mark as solution. Kudo's for the effort are appreciated.&lt;/P&gt;&lt;P&gt;Kind regards,&amp;nbsp; Steve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 17:53:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144817#M17222</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-05T17:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144890#M17226</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done this for Top2, you can change the value in TOPN function to 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to show in matrix format.&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;Link to the file.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1nMW9-djgSQlPPdUXvW2d0aFrqHrSXxU0/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1nMW9-djgSQlPPdUXvW2d0aFrqHrSXxU0/view?usp=sharing&lt;/A&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;Regards,&lt;BR /&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 18:32:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1144890#M17226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-05T18:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1145345#M17259</link>
      <description>&lt;A href="https://blog.gbrueckl.at/2019/05/power-bi-dynamic-topn-others-with-drill-down/" target="_blank"&gt;https://blog.gbrueckl.at/2019/05/power-bi-dynamic-topn-others-with-drill-down/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The link above has all you need to do this and even be able to drill down using the Other group.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Sat, 06 Jun 2020 11:12:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1145345#M17259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-06T11:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1146514#M17322</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that's the way of think to get the solution, but I still have problems with that 'table2'; I don't understand what it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the answer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards Dario&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 07:31:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1146514#M17322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-08T07:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1146538#M17323</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;this link is perfectly describing the solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Dario&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 07:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1146538#M17323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-08T07:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1146667#M17327</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, nice article indeed!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 08:58:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1146667#M17327</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-08T08:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show top n and "others" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1147081#M17346</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;thanks to who already answered, specially&amp;nbsp;Anonymous&lt;/LI-USER&gt; and&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp; for best solution for my situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's something more I want to ask for, that's my result (top 5 and other):&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if possible, I would like the graphic to show first the values of top 5 (in descending order), then at the end always the value of others, not depending on its size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 14:18:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-top-n-and-quot-others-quot-values/m-p/1147081#M17346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-08T14:18:37Z</dc:date>
    </item>
  </channel>
</rss>

