<?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 by Category (multiple lines with the same category) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-by-Category-multiple-lines-with-the-same/m-p/3096712#M108680</link>
    <description>&lt;P&gt;I am trying to do a scatter plot visual that includes total sales by customer.&amp;nbsp; The way my dataset is currently setup; there are multiple lines for the same customer (all lines add up to the true total sales).&amp;nbsp; When I add sales to the scatter plot along with a slicer (that includes sales) to be able to view customers sales by a certain range, Power BI is not reading the true "Total Sales".&amp;nbsp; See example below on what is occuring.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer A total sales = $9&lt;/P&gt;&lt;P&gt;Customer B total Sales = $3&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I slice it to say anything less than $8 customer B should only show, but power BI is reading each individual line and showing customer A at $7.&amp;nbsp; Is there a way to create a formula or expression to where power BI would read Customer A at a total of $9 and B at $3 so that my slicer would work correctly?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 22:35:40 GMT</pubDate>
    <dc:creator>JAS2022</dc:creator>
    <dc:date>2023-02-23T22:35:40Z</dc:date>
    <item>
      <title>Calculating Total Sales by Category (multiple lines with the same category)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-by-Category-multiple-lines-with-the-same/m-p/3096712#M108680</link>
      <description>&lt;P&gt;I am trying to do a scatter plot visual that includes total sales by customer.&amp;nbsp; The way my dataset is currently setup; there are multiple lines for the same customer (all lines add up to the true total sales).&amp;nbsp; When I add sales to the scatter plot along with a slicer (that includes sales) to be able to view customers sales by a certain range, Power BI is not reading the true "Total Sales".&amp;nbsp; See example below on what is occuring.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer A total sales = $9&lt;/P&gt;&lt;P&gt;Customer B total Sales = $3&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I slice it to say anything less than $8 customer B should only show, but power BI is reading each individual line and showing customer A at $7.&amp;nbsp; Is there a way to create a formula or expression to where power BI would read Customer A at a total of $9 and B at $3 so that my slicer would work correctly?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 22:35:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-by-Category-multiple-lines-with-the-same/m-p/3096712#M108680</guid>
      <dc:creator>JAS2022</dc:creator>
      <dc:date>2023-02-23T22:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Total Sales by Category (multiple lines with the same category)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-by-Category-multiple-lines-with-the-same/m-p/3097199#M108723</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="519852" data-lia-user-login="JAS2022" class="lia-mention lia-mention-user"&gt;JAS2022&lt;/a&gt; , Create a numeric ?what if param and follwing measure &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Total Sales = sum(Table[Sales])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GT Selected = sumx(values(Table[Filter]), if([Total Sales] &amp;gt;= [Parameter Measure] , [Total Sales], blank() ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/desktop-what-if" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/desktop-what-if&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 05:30:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Total-Sales-by-Category-multiple-lines-with-the-same/m-p/3097199#M108723</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-02-24T05:30:39Z</dc:date>
    </item>
  </channel>
</rss>

