<?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: DAX Formula Total is coming 0 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734626#M35997</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="290405" data-lia-user-login="Tool123456" class="lia-mention lia-mention-user"&gt;Tool123456&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the file with us so as to have a look at it?&lt;/P&gt;</description>
    <pubDate>Sun, 21 Mar 2021 07:38:57 GMT</pubDate>
    <dc:creator>themistoklis</dc:creator>
    <dc:date>2021-03-21T07:38:57Z</dc:date>
    <item>
      <title>DAX Formula Total is coming 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1719572#M35552</link>
      <description>&lt;P&gt;Hello Experts, If you could help in correcting DAX Logic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have created a DAX Logics, based on two measures we have ZActuals &amp;amp; ZForecast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ZFC = If (SUM(Project[ZActuals])=0,SUM(Project[ZForecast]),0)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If you see below snapshot, the Total for all months for ZFC is coming 0, which is actually not the case. How can we make it show the actual Total. For individual months, the Logic seems to work correctly, but the Total is shoing up 0.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Mar 2021 18:57:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1719572#M35552</guid>
      <dc:creator>Tool123456</dc:creator>
      <dc:date>2021-03-12T18:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula Total is coming 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1719742#M35560</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="290405" data-lia-user-login="Tool123456" class="lia-mention lia-mention-user"&gt;Tool123456&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following formula:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;ZFC = If (SUM(Project[ZActuals])=0, SUMX (VALUES ( Project[Year-Month] ); CALCULATE ( SUM(Project[ZForecast]) )), 0)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Mar 2021 21:29:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1719742#M35560</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-03-12T21:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula Total is coming 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734539#M35995</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I replied to your post next Day. Not sure if it got deleted or not posted correctly. Apologies.&lt;/P&gt;&lt;P&gt;I tried formula the very next Day, it is leading to the same result. The sum is still coming 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 03:35:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734539#M35995</guid>
      <dc:creator>Tool123456</dc:creator>
      <dc:date>2021-03-21T03:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula Total is coming 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734626#M35997</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="290405" data-lia-user-login="Tool123456" class="lia-mention lia-mention-user"&gt;Tool123456&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the file with us so as to have a look at it?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 07:38:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734626#M35997</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-03-21T07:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula Total is coming 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734635#M35998</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="290405" data-lia-user-login="Tool123456" class="lia-mention lia-mention-user"&gt;Tool123456&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use the logic described here:&amp;nbsp;&lt;A title="Measure Totals, The Final Word" href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_self"&gt;Measure Totals, The Final Word&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your measures will be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ZFCPerMonth = 
    IF(
        SUM(ZFC[ZActuals])=0, 
        SUM(ZFC[ZForecast]),
        0)&lt;/LI-CODE&gt;&lt;P&gt;and&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ZFC = 
    VAR _table = SUMMARIZE(ZFC, ZFC[Month], "ZFCValue", [ZFCPerMonth])
RETURN
    IF(HASONEVALUE(ZFC[Month]), [ZFCPerMonth], SUMX(_table, [ZFCValue]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 08:23:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734635#M35998</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-03-21T08:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula Total is coming 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734896#M36006</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies. Might not be able to share the file. It might contain confidential informaiton, which I am not supposed to share. Thanks for trying, you were pretty close. The solution suggested by ERD worked. Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 15:36:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734896#M36006</guid>
      <dc:creator>Tool123456</dc:creator>
      <dc:date>2021-03-21T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula Total is coming 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734898#M36007</link>
      <description>&lt;P&gt;Thanks this Worked.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 15:37:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Total-is-coming-0/m-p/1734898#M36007</guid>
      <dc:creator>Tool123456</dc:creator>
      <dc:date>2021-03-21T15:37:41Z</dc:date>
    </item>
  </channel>
</rss>

