<?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 sum of the remaining in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687235#M80769</link>
    <description>&lt;P&gt;Hi, I'm new in Power BI and wondering to present the result in decomposition tree.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of data&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Timestamp&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;type&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;6/6/22&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;a&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7/6/22&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/6/22&lt;/TD&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/6/22&lt;/TD&gt;&lt;TD&gt;d&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3/6/22&lt;/TD&gt;&lt;TD&gt;e&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the sum of those are 400, but the sum from the table is 330.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Remaining = &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Total'[Value]&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;'Type'[Value]&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;How should I input this remaining value inside my decomposition tree?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The decomposition tree is total&amp;gt;type and remaining &amp;gt; a,b,c,d,e&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for your help&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 08 Aug 2022 11:55:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-08T11:55:35Z</dc:date>
    <item>
      <title>sum of the remaining</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687235#M80769</link>
      <description>&lt;P&gt;Hi, I'm new in Power BI and wondering to present the result in decomposition tree.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of data&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Timestamp&lt;/P&g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t;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How should I input this remaining value inside my decomposition tree?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The decomposition tree is total&amp;gt;type and remaining &amp;gt; a,b,c,d,e&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for your help&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2022 11:55:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687235#M80769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-08T11:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: sum of the remaining</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687331#M80777</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&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>Mon, 08 Aug 2022 12:32:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687331#M80777</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-08-08T12:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: sum of the remaining</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687556#M80797</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;There something different. I want to use dax to get the remaining value 70 and put that value into the remaining column so that the time I perform decomposition tree there will be 330 and 70 from the total.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 13:56:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687556#M80797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-08T13:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: sum of the remaining</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687577#M80799</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Where does the 400 come from?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 14:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687577#M80799</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-08-08T14:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: sum of the remaining</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687584#M80801</link>
      <description>&lt;P&gt;I have two set of value; one is the total 400 and one is the list of value which equal to 330.&amp;nbsp; And I use the remaining=total-list of value.&lt;/P&gt;&lt;P&gt;So I willing to get a decomposition tree that 330 and 70.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a category list table&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;d&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;e&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;remaining&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know how to let the remaining value input to the table value there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 14:09:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687584#M80801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-08T14:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: sum of the remaining</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687594#M80803</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have two set of value; one is the total 400 and one is the list of value which equal to 330.&amp;nbsp; And I use the remaining=total-list of value.&lt;/P&gt;&lt;P&gt;So I willing to get a decomposition tree that 330 and 70.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a category list table&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;d&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;e&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;remaining&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know how to let the remaining value input to the table value there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 14:13:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2687594#M80803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-08T14:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: sum of the remaining</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2694241#M81215</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you want this result?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please try this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;val = IF(HASONEVALUE('Table'[type]),SELECTEDVALUE('Table'[value]),'Table'[remaining])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and change the name of total:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can get you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;SPAN&gt;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;Best regards.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 06:50:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2694241#M81215</guid>
      <dc:creator>selinaz</dc:creator>
      <dc:date>2022-08-11T06:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: sum of the remaining</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2694504#M81239</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to complete Table 'categories list' with the following data.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Calculated column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Category = IF('category list'[SubCategory]="remaining","remaining","Type")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Total= 
var a= RELATED('Type'[value])
return IF(ISBLANK(a),SUM(Total[Value])-SUM('Type'[value]),a)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://m365x24147921-my.sharepoint.com/:u:/g/personal/admin_m365x24147921_onmicrosoft_com/EZHABKVR0KJNtsAyw2qWG2UBmOCiAuljtW69_SzHvN5CwQ?e=pvM9Vk" target="_blank" rel="noopener"&gt;sample pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ethan&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 08:22:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-of-the-remaining/m-p/2694504#M81239</guid>
      <dc:creator>Ethan96</dc:creator>
      <dc:date>2022-08-11T08:22:28Z</dc:date>
    </item>
  </channel>
</rss>

