<?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 n sales client by seller in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/top-n-sales-client-by-seller/m-p/3087639#M108013</link>
    <description>&lt;P&gt;thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443516" data-lia-user-login="ppm1" class="lia-mention lia-mention-user"&gt;ppm1&lt;/a&gt;&amp;nbsp;, it's perfect&amp;nbsp;&lt;BR /&gt;thanks&amp;nbsp; a lot.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 10:17:33 GMT</pubDate>
    <dc:creator>Sofinobi</dc:creator>
    <dc:date>2023-02-20T10:17:33Z</dc:date>
    <item>
      <title>top n sales client by seller</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/top-n-sales-client-by-seller/m-p/3086503#M107928</link>
      <description>&lt;P&gt;hello all ,&lt;/P&gt;&lt;P&gt;please,&lt;/P&gt;&lt;P&gt;i have a sales table with columns : clients - sellers - amount&lt;BR /&gt;i have a measure to calcule the total sales [Sales]&lt;BR /&gt;i need to calculate the percentage of the [Sales] of the top 2 client for each seller comparing for the total sales.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1vhnTbsSYIcaB2zBlYK6bcpP-eh6qyie5/view?usp=share_link" target="_self"&gt;TOP N.pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 12:35:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/top-n-sales-client-by-seller/m-p/3086503#M107928</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-02-19T12:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: top n sales client by seller</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/top-n-sales-client-by-seller/m-p/3086551#M107938</link>
      <description>&lt;P&gt;Here are two measures that should do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top2 Sales =
VAR tSummary =
    ADDCOLUMNS ( VALUES ( Sales_Tab[Client] ), "cSales", [Sales] )
RETURN
    SUMX ( TOPN ( 2, tSummary, [cSales], DESC ), [cSales] )

Not Top2 Sales =
VAR tSummary =
    ADDCOLUMNS ( VALUES ( Sales_Tab[Client] ), "cSales", [Sales] )
VAR vCount =
    COUNTROWS ( tSummary )
RETURN
    IF (
        vCount &amp;gt;= 4,
        SUMX ( TOPN ( vCount - 2, tSummary, [cSales], ASC ), [cSales] )
    )&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;</description>
      <pubDate>Sun, 19 Feb 2023 14:36:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/top-n-sales-client-by-seller/m-p/3086551#M107938</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2023-02-19T14:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: top n sales client by seller</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/top-n-sales-client-by-seller/m-p/3087639#M108013</link>
      <description>&lt;P&gt;thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443516" data-lia-user-login="ppm1" class="lia-mention lia-mention-user"&gt;ppm1&lt;/a&gt;&amp;nbsp;, it's perfect&amp;nbsp;&lt;BR /&gt;thanks&amp;nbsp; a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 10:17:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/top-n-sales-client-by-seller/m-p/3087639#M108013</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-02-20T10:17:33Z</dc:date>
    </item>
  </channel>
</rss>

