<?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: Need help with DAX formula so that grand total will add up in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3014523#M102340</link>
    <description>&lt;P&gt;I've put the PBIX file here.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/1H3RhPHa4eoumYgKwXafuAQDBnloRx7XW?usp=sharing" target="_blank" rel="noopener"&gt;Interim Target PBIX&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 17:04:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-11T17:04:34Z</dc:date>
    <item>
      <title>Need help with DAX formula so that grand total will add up</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3014369#M102324</link>
      <description>&lt;P&gt;I have the formula below for Interim Target and the grand total doesn't add up.&amp;nbsp; I have done a bit of digging and I tried simply chaning the SUMs to SUMX but I get a 'too few arguments' message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In english the equation is&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;Any help greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Interim target = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ROUNDUP&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'GS_OE_Target_Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Target_Participants]&lt;/SPAN&gt;&lt;SPAN&gt;) * (&lt;/SPAN&gt;&lt;SPAN&gt;140&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'CRM Data'&lt;/SPAN&gt;&lt;SPAN&gt;[selling_days]&lt;/SPAN&gt;&lt;SPAN&gt;))),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;140&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jan 2023 16:00:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3014369#M102324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-11T16:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX formula so that grand total will add up</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3014395#M102327</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/m-p/1626726#M32906" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/m-p/1626726#M32906&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 16:09:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3014395#M102327</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-11T16:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX formula so that grand total will add up</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3014399#M102328</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&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, 11 Jan 2023 16:12:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3014399#M102328</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-01-11T16:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX formula so that grand total will add up</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3014523#M102340</link>
      <description>&lt;P&gt;I've put the PBIX file here.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/1H3RhPHa4eoumYgKwXafuAQDBnloRx7XW?usp=sharing" target="_blank" rel="noopener"&gt;Interim Target PBIX&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 17:04:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3014523#M102340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-11T17:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX formula so that grand total will add up</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3016157#M102431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try this code to create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Interim target =
VAR _SUMMARIZE =
    SUMMARIZE (
        GS_OE_Target_Data,
        'CRM Data'[Code],
        "Interim target",
            ROUNDUP (
                DIVIDE (
                    (
                        SUM ( 'GS_OE_Target_Data'[Target_Participants] )
                            * ( 140 - SUM ( 'CRM Data'[selling_days] ) )
                    ),
                    140
                ),
                0
            )
    )
RETURN
    SUMX ( _SUMMARIZE, [Interim target] )&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 08:39:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3016157#M102431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-12T08:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX formula so that grand total will add up</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3023618#M102988</link>
      <description>&lt;P&gt;That worked Rico - thanks v much&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 15:15:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-formula-so-that-grand-total-will-add-up/m-p/3023618#M102988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-16T15:15:22Z</dc:date>
    </item>
  </channel>
</rss>

