<?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 Wrong Total with IF Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-Total-with-IF-Measure/m-p/3149865#M112801</link>
    <description>&lt;P&gt;Hi experts!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a measure A like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR _Sales = [Sales]
RETURN
IF(MAX('Calendar 2'[MonthOffset]) &amp;gt; MAX('Calendar'[MonthOffset]), _Sales, 0)&lt;/LI-CODE&gt;
&lt;P&gt;Then I have a measure B like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SUM(Orders[Values])&lt;/LI-CODE&gt;
&lt;P&gt;Both measures I combine in a single measure like A + B.&lt;/P&gt;
&lt;P&gt;But then if i put this measure into a matrix to show the values for year-month, then the total is wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would you adjust the total measure to get the totals right?&lt;/P&gt;
&lt;P&gt;I hope this is enough information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 12:36:21 GMT</pubDate>
    <dc:creator>joshua1990</dc:creator>
    <dc:date>2023-03-23T12:36:21Z</dc:date>
    <item>
      <title>Wrong Total with IF Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-Total-with-IF-Measure/m-p/3149865#M112801</link>
      <description>&lt;P&gt;Hi experts!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a measure A like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR _Sales = [Sales]
RETURN
IF(MAX('Calendar 2'[MonthOffset]) &amp;gt; MAX('Calendar'[MonthOffset]), _Sales, 0)&lt;/LI-CODE&gt;
&lt;P&gt;Then I have a measure B like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SUM(Orders[Values])&lt;/LI-CODE&gt;
&lt;P&gt;Both measures I combine in a single measure like A + B.&lt;/P&gt;
&lt;P&gt;But then if i put this measure into a matrix to show the values for year-month, then the total is wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would you adjust the total measure to get the totals right?&lt;/P&gt;
&lt;P&gt;I hope this is enough information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 12:36:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-Total-with-IF-Measure/m-p/3149865#M112801</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2023-03-23T12:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Total with IF Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-Total-with-IF-Measure/m-p/3153595#M113038</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot). &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 01:33:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wrong-Total-with-IF-Measure/m-p/3153595#M113038</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-25T01:33:00Z</dc:date>
    </item>
  </channel>
</rss>

