<?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 Problem with Total sales calculation - please help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Total-sales-calculation-please-help/m-p/4212108#M167005</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello everyone&lt;BR /&gt;I am having a problem getting the correct sales total.&lt;BR /&gt;In the example below, I am calculating the sales total from the beginning of each month to the 10th of the month.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;But at the aggregate business unit and year level, and the totals are as for whole months&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank&amp;nbsp;you in advance for your help !!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 02 Oct 2024 12:47:57 GMT</pubDate>
    <dc:creator>LeszekGL</dc:creator>
    <dc:date>2024-10-02T12:47:57Z</dc:date>
    <item>
      <title>Problem with Total sales calculation - please help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Total-sales-calculation-please-help/m-p/4212108#M167005</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello everyone&lt;BR /&gt;I am having a problem getting the correct sales total.&lt;BR /&gt;In the example below, I am calculating the sales total from the beginning of each month to the 10th of the month.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;But at the aggregate business unit and year level, and the totals are as for whole months&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank&amp;nbsp;you in advance for your help !!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Oct 2024 12:47:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Total-sales-calculation-please-help/m-p/4212108#M167005</guid>
      <dc:creator>LeszekGL</dc:creator>
      <dc:date>2024-10-02T12:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Total sales calculation - please help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Total-sales-calculation-please-help/m-p/4212412#M167013</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="818144" data-lia-user-login="LeszekGL" class="lia-mention lia-mention-user"&gt;LeszekGL&lt;/a&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 14:49:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Total-sales-calculation-please-help/m-p/4212412#M167013</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-10-02T14:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Total sales calculation - please help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Total-sales-calculation-please-help/m-p/4213979#M167045</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="818144" data-lia-user-login="LeszekGL" class="lia-mention lia-mention-user"&gt;LeszekGL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I created these data.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Create MEASURE.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE =
VAR _mindate =
    EOMONTH ( MIN ( 'Table'[Date] ), -1 ) + 1
VAR _maxdate =
    EOMONTH ( MAX ( 'Table'[Date] ), -1 ) + 10
VAR _sum1 =
    CALCULATE (
        SUM ( 'Table'[Amount] ),
        'Table'[Date] &amp;gt;= _mindate
            &amp;amp;&amp;amp; 'Table'[Date] &amp;lt;= _maxdate
    )
RETURN
    _sum1
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
SUMX('Table',[MEASURE])
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 3 = 
IF(HASONEVALUE('Table'[Date].[Month]),[MEASURE],[Measure 2])
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 05:33:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Total-sales-calculation-please-help/m-p/4213979#M167045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-03T05:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Total sales calculation - please help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Total-sales-calculation-please-help/m-p/4214109#M167052</link>
      <description>&lt;P&gt;Hello Clara&lt;BR /&gt;Works fine - thanks a lot !!!&lt;BR /&gt;Leszek&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 06:54:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Total-sales-calculation-please-help/m-p/4214109#M167052</guid>
      <dc:creator>LeszekGL</dc:creator>
      <dc:date>2024-10-03T06:54:23Z</dc:date>
    </item>
  </channel>
</rss>

