<?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 And Bottom 10 in a single Bar Chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2970907#M99278</link>
    <description>&lt;P&gt;You didn't use the whole expression from the example. Please try this measure.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top N Sum Sales =
VAR Top10 =
    TOPN ( 10, ALLSELECTED ( 'DimCustomer'[Name] ), [Revenue], DESC )
VAR Bottom10 =
    TOPN ( 10, ALLSELECTED ( 'DimCustomer'[Name] ), [Revenue], ASC )
RETURN
    CALCULATE ( [Revenue], KEEPFILTERS ( UNION ( Top10, Bottom10 ) ) )&lt;/LI-CODE&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 13:44:05 GMT</pubDate>
    <dc:creator>ppm1</dc:creator>
    <dc:date>2022-12-15T13:44:05Z</dc:date>
    <item>
      <title>TOP 10 And Bottom 10 in a single Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2969207#M99173</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Does anyone know what i have to do to saw in 1 sinlge bar chart the top 10 and the bottom 10 customers by revenue measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 00:17:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2969207#M99173</guid>
      <dc:creator>VagelisVlachos</dc:creator>
      <dc:date>2022-12-15T00:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 And Bottom 10 in a single Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2969248#M99176</link>
      <description>&lt;P&gt;Here is an example of how to do this. In my case, I only had 6 products, so did Top/Bottom 2 only, but the pattern is the same. This is a table, but if you use the adapted measures in a bar chart, only the top/bottom will show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top Bottom 2 =
VAR Top2 =
    TOPN ( 2, ALLSELECTED ( 'Product'[Product] ), [Total Sales], DESC )
VAR Bottom2 =
    TOPN ( 2, ALLSELECTED ( 'Product'[Product] ), [Total Sales], ASC )
RETURN
    CALCULATE ( [Total Sales], KEEPFILTERS ( UNION ( Top2, Bottom2 ) ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 01:13:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2969248#M99176</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2022-12-15T01:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 And Bottom 10 in a single Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2970345#M99229</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Thanks for the reply but this not work properly. In the visual i dont any data for the bottom "10". I ve got only for the top "10". i have tried it in a table and in bar chart and nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Top N Sum Sales = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[Revenue]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;KEEPFILTERS&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;TOPN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'DimCustomer'&lt;/SPAN&gt;&lt;SPAN&gt;[Name]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;[Revenue]&lt;/SPAN&gt;&lt;SPAN&gt; ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i used this for top 10 but i can't understand what i have to do for the bottom "10"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 09:31:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2970345#M99229</guid>
      <dc:creator>VagelisVlachos</dc:creator>
      <dc:date>2022-12-15T09:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 And Bottom 10 in a single Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2970357#M99231</link>
      <description>&lt;P&gt;I think the easiest way is to summarize the the revenues, create a list by customer, and add a basic filter ( top 10) on the visualization ( right side where the visualizations are), and a new list with bottom 10&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 09:35:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2970357#M99231</guid>
      <dc:creator>Tommyvhod</dc:creator>
      <dc:date>2022-12-15T09:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 And Bottom 10 in a single Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2970365#M99233</link>
      <description>&lt;P&gt;Yes but you will have 2 different visual.I need to have 1 single visual with the top 10 and the bottom 10.Your way has to be with 2 different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 09:38:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2970365#M99233</guid>
      <dc:creator>VagelisVlachos</dc:creator>
      <dc:date>2022-12-15T09:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 And Bottom 10 in a single Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2970907#M99278</link>
      <description>&lt;P&gt;You didn't use the whole expression from the example. Please try this measure.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top N Sum Sales =
VAR Top10 =
    TOPN ( 10, ALLSELECTED ( 'DimCustomer'[Name] ), [Revenue], DESC )
VAR Bottom10 =
    TOPN ( 10, ALLSELECTED ( 'DimCustomer'[Name] ), [Revenue], ASC )
RETURN
    CALCULATE ( [Revenue], KEEPFILTERS ( UNION ( Top10, Bottom10 ) ) )&lt;/LI-CODE&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 13:44:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2970907#M99278</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2022-12-15T13:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 And Bottom 10 in a single Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2971363#M99314</link>
      <description>&lt;P&gt;I used the whole expression and didnt work for the bottom 10.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:24:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2971363#M99314</guid>
      <dc:creator>VagelisVlachos</dc:creator>
      <dc:date>2022-12-15T16:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 And Bottom 10 in a single Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2993068#M100758</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Top/Bottom = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; top10 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt; ( DimCustomer[Name] ), [Gross Profit],, &lt;/SPAN&gt;&lt;SPAN&gt;ASC&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; bot10 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt; ( DimCustomer[Name] ), [Gross Profit],, &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; ( top10 &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt; || bot10 &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;, [Gross Profit], &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt; () )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Dec 2022 10:06:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-And-Bottom-10-in-a-single-Bar-Chart/m-p/2993068#M100758</guid>
      <dc:creator>VagelisVlachos</dc:creator>
      <dc:date>2022-12-29T10:06:06Z</dc:date>
    </item>
  </channel>
</rss>

