<?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: How to display all the Products except the Top 3 Best Selling Products in a Visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-all-the-Products-except-the-Top-3-Best-Selling/m-p/3178166#M114803</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; That worked like a charm! Thank you so much. Also thanks a lot for writing such a clean and understandable code, I totally get what I was doing wrong with my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more thing I would like to ask if you can answer. I actually have a Bar Chart in a report. This bar chart shows the sales of all the Products except top 3 (using this measure).&lt;/P&gt;&lt;P&gt;I am putting this report as a "Tooltip" in my main Report where I am showing Top 3 Products + Others. So what I am trying to achieve is actually show the&amp;nbsp;&lt;STRONG&gt;sales of all the products except top 3 when visual is hovered.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But because hovering over the visual in main report "filters" the Bar Chart in the Tooltip report, I am getting blank in the tooltip. Is there any way I can escape the filter in the Bar Chart in any way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to change ALLSELECTED to "ALL" but it unfortunately did not work,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Others SUM =
VAR TOPNSelected =
SELECTEDVALUE ( 'TopN Selection'[Value] )
VAR SelectedProducts =
ALL( 'Pseudo Prod Table'[Product] )
VAR TopProducts =
TOPN ( TopNSelected, SelectedProducts, [Total Sales] )
VAR OtherProducts =
EXCEPT ( SelectedProducts, TopProducts )
RETURN
CALCULATE ( [Total Sales], KEEPFILTERS ( OtherProducts ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2023 23:38:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-07T23:38:14Z</dc:date>
    <item>
      <title>How to display all the Products except the Top 3 Best Selling Products in a Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-all-the-Products-except-the-Top-3-Best-Selling/m-p/3177762#M114773</link>
      <description>&lt;P&gt;I have a visual created to display the Top 3 Products + Others with their Sale amounts.&lt;/P&gt;&lt;P&gt;I am trying to make a Tooltip visual where I can show all the Products that fall into "Others" Category, but I can't seem to think of any way with which I can do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a template, I followed this Youtube video:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=yGFcCbXn_g0" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=yGFcCbXn_g0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and did exactly what he did to display the Top 3 Products + Others. Now, I need a similar visual that shows all the Products except the Top 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following DAX is used to display the only Top 3 Products + the Others&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top N SUM = 
VAR TOPNSelected = SELECTEDVALUE('TopN Selection'[Value])
VAR CurrentProd = SELECTEDVALUE('Pseudo Prod Table'[Product])
VAR TopProducts = 
    TOPN(
        TopNSelected,
        ALLSELECTED('Pseudo Prod Table'[Product]),
        [Total Sales]
    )
VAR TopProdSales = 
    CALCULATE(
        [Total Sales],
        KEEPFILTERS( TopProducts )
    )
RETURN
    SWITCH(
        TRUE(),
        CurrentProd &amp;lt;&amp;gt; "Others",
        TopProdSales,
        CurrentProd = "Others",
            CALCULATE(
                [Total Sales],
                ALLSELECTED('Pseudo Prod Table'[Product])
            ) - 
            CALCULATE(
                [Total Sales], 
                TopProducts
            )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using different DAX functions such as&amp;nbsp;&lt;EM&gt;EXCEPT&amp;nbsp;&lt;/EM&gt;but couldn't really come up with a solution&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyine help out in this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;You may download the Power BI File from here:&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;&lt;A href="https://drive.google.com/file/d/16C1hoGOW2yQDrjcqXkrMKmik7VnRVhj5/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/16C1hoGOW2yQDrjcqXkrMKmik7VnRVhj5/view?usp=sharing&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 15:21:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-all-the-Products-except-the-Top-3-Best-Selling/m-p/3177762#M114773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-07T15:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to display all the Products except the Top 3 Best Selling Products in a Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-all-the-Products-except-the-Top-3-Best-Selling/m-p/3177860#M114778</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Others SUM =&lt;BR /&gt;VAR TOPNSelected =&lt;BR /&gt;SELECTEDVALUE ( 'TopN Selection'[Value] )&lt;BR /&gt;VAR SelectedProducts =&lt;BR /&gt;ALLSELECTED ( 'Pseudo Prod Table'[Product] )&lt;BR /&gt;VAR TopProducts =&lt;BR /&gt;TOPN ( TopNSelected, SelectedProducts, [Total Sales] )&lt;BR /&gt;VAR OtherProducts =&lt;BR /&gt;EXCEPT ( SelectedProducts, TopProducts )&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE ( [Total Sales], KEEPFILTERS ( OtherProducts ) )&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 16:31:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-all-the-Products-except-the-Top-3-Best-Selling/m-p/3177860#M114778</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-07T16:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to display all the Products except the Top 3 Best Selling Products in a Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-all-the-Products-except-the-Top-3-Best-Selling/m-p/3178166#M114803</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; That worked like a charm! Thank you so much. Also thanks a lot for writing such a clean and understandable code, I totally get what I was doing wrong with my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more thing I would like to ask if you can answer. I actually have a Bar Chart in a report. This bar chart shows the sales of all the Products except top 3 (using this measure).&lt;/P&gt;&lt;P&gt;I am putting this report as a "Tooltip" in my main Report where I am showing Top 3 Products + Others. So what I am trying to achieve is actually show the&amp;nbsp;&lt;STRONG&gt;sales of all the products except top 3 when visual is hovered.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But because hovering over the visual in main report "filters" the Bar Chart in the Tooltip report, I am getting blank in the tooltip. Is there any way I can escape the filter in the Bar Chart in any way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to change ALLSELECTED to "ALL" but it unfortunately did not work,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Others SUM =
VAR TOPNSelected =
SELECTEDVALUE ( 'TopN Selection'[Value] )
VAR SelectedProducts =
ALL( 'Pseudo Prod Table'[Product] )
VAR TopProducts =
TOPN ( TopNSelected, SelectedProducts, [Total Sales] )
VAR OtherProducts =
EXCEPT ( SelectedProducts, TopProducts )
RETURN
CALCULATE ( [Total Sales], KEEPFILTERS ( OtherProducts ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 23:38:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-all-the-Products-except-the-Top-3-Best-Selling/m-p/3178166#M114803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-07T23:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to display all the Products except the Top 3 Best Selling Products in a Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-all-the-Products-except-the-Top-3-Best-Selling/m-p/3178335#M114820</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Others SUM =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR TOPNSelected =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECTEDVALUE ( 'TopN Selection'[Value] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR SelectedProducts =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ALLSELECTED ( 'Pseudo Prod Table'[Product] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR TopProducts =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TOPN ( TopNSelected, SelectedProducts, [Total Sales] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR OtherProducts =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXCEPT ( SelectedProducts, TopProducts )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE ( [Total Sales], OtherProducts )&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 07:23:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-all-the-Products-except-the-Top-3-Best-Selling/m-p/3178335#M114820</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-08T07:23:03Z</dc:date>
    </item>
  </channel>
</rss>

