<?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 Calculating Total Sales for a selected Product and its share based on customer you are evaluating in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-for-a-selected-Product-and-its-share/m-p/1393182#M25554</link>
    <description>&lt;P&gt;Hi guys, I want to calculate the&amp;nbsp; sales amount of a customer given a specific product&amp;nbsp; in comparison to the total sales of the company as a whole for that same product but I am having trouble with my calculations.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get total sales of customer I just use a simple&amp;nbsp; CUSTOMER SALES = CALCULATE(TOTAL SALES) which would be filtered when I select my customer and product.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for total sales of that product should I use ALL or ALLSELECTED.&amp;nbsp; CALCULATE(TOTAL SALES),ALL(TABLE),PRODUCT = ALLSELECTED(PRODUCT)) ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 13:24:47 GMT</pubDate>
    <dc:creator>cdawidow</dc:creator>
    <dc:date>2020-09-24T13:24:47Z</dc:date>
    <item>
      <title>Calculating Total Sales for a selected Product and its share based on customer you are evaluating</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-for-a-selected-Product-and-its-share/m-p/1393182#M25554</link>
      <description>&lt;P&gt;Hi guys, I want to calculate the&amp;nbsp; sales amount of a customer given a specific product&amp;nbsp; in comparison to the total sales of the company as a whole for that same product but I am having trouble with my calculations.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get total sales of customer I just use a simple&amp;nbsp; CUSTOMER SALES = CALCULATE(TOTAL SALES) which would be filtered when I select my customer and product.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for total sales of that product should I use ALL or ALLSELECTED.&amp;nbsp; CALCULATE(TOTAL SALES),ALL(TABLE),PRODUCT = ALLSELECTED(PRODUCT)) ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 13:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-for-a-selected-Product-and-its-share/m-p/1393182#M25554</guid>
      <dc:creator>cdawidow</dc:creator>
      <dc:date>2020-09-24T13:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Total Sales for a selected Product and its share based on customer you are evaluating</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-for-a-selected-Product-and-its-share/m-p/1393256#M25558</link>
      <description>&lt;LI-CODE lang="csharp"&gt;// Assumptions:
// Sales - fact table with sales
// Customers - dimension that stores all customers
//             and joins to Sales on CustomerID.
// Products - dimension that stores all prouducts
//            and joins to Sales on ProductID

[Total Sales] = SUM( Sales[Amount] )

[Total Sales (All Custs)] =
CALCULATE(
    [Total Sales],
    ALL( Customers )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Sep 2020 13:49:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-for-a-selected-Product-and-its-share/m-p/1393256#M25558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-24T13:49:50Z</dc:date>
    </item>
  </channel>
</rss>

