<?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: Correct totals of sum column X or Y in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-totals-of-sum-column-X-or-Y/m-p/1378530#M25174</link>
    <description>&lt;P&gt;Sorry I forgot something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table also has a column named COSTSAVINGS and caluclations of SUM is only for the COST.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 19:45:47 GMT</pubDate>
    <dc:creator>Sparkeltje</dc:creator>
    <dc:date>2020-09-17T19:45:47Z</dc:date>
    <item>
      <title>Correct totals of sum column X or Y</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-totals-of-sum-column-X-or-Y/m-p/1378515#M25171</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;I have trouble calculating the correct grand total.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;The table has two colums with amounts and I want to calculate the sum of column x when not empty AND&amp;nbsp;if empty then calculate column Y.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To get to the solution I have an measure to calulate X and one to caluclate Y. Then I did the next IF statement:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Inv.IF = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF([Inv_X] &amp;lt;&amp;gt; 0 , [Inv_X], [Inv_Y])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;It works on row but the&amp;nbsp;grand total is the sum of Inv_X. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When you select only data&amp;nbsp;with date form&amp;nbsp;Inv_Y, the total is of only Inv_Y.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can I&amp;nbsp;calculate&amp;nbsp;the sum when Inv_X &amp;lt;&amp;gt; 0, then calculate Inv_Y and see the correct grand total?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:35:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-totals-of-sum-column-X-or-Y/m-p/1378515#M25171</guid>
      <dc:creator>Sparkeltje</dc:creator>
      <dc:date>2020-09-17T19:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Correct totals of sum column X or Y</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-totals-of-sum-column-X-or-Y/m-p/1378530#M25174</link>
      <description>&lt;P&gt;Sorry I forgot something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table also has a column named COSTSAVINGS and caluclations of SUM is only for the COST.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:45:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-totals-of-sum-column-X-or-Y/m-p/1378530#M25174</guid>
      <dc:creator>Sparkeltje</dc:creator>
      <dc:date>2020-09-17T19:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Correct totals of sum column X or Y</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-totals-of-sum-column-X-or-Y/m-p/1378591#M25175</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="246403" data-lia-user-login="Sparkeltje" class="lia-mention lia-mention-user"&gt;Sparkeltje&lt;/a&gt;&amp;nbsp;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;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 20:35:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-totals-of-sum-column-X-or-Y/m-p/1378591#M25175</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-17T20:35:26Z</dc:date>
    </item>
  </channel>
</rss>

