<?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 Add TOTAL column within table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3390389#M127813</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a table and would like to add a total column as a column in between the values.&lt;/P&gt;&lt;P&gt;All values needs to be summarized except colum with value 2220.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See screenshot below. All values from column 1110, 1111, 1112, 1120, 1121, 1140, 1141, 1142 needs to be summarized in a new column called TOTAL (yellow).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made a new column which summarizes the values, but when I insert this new calculated column it is not shown in the table header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 14:10:40 GMT</pubDate>
    <dc:creator>mnb_dk</dc:creator>
    <dc:date>2023-08-21T14:10:40Z</dc:date>
    <item>
      <title>Add TOTAL column within table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3390389#M127813</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a table and would like to add a total column as a column in between the values.&lt;/P&gt;&lt;P&gt;All values needs to be summarized except colum with value 2220.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See screenshot below. All values from column 1110, 1111, 1112, 1120, 1121, 1140, 1141, 1142 needs to be summarized in a new column called TOTAL (yellow).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made a new column which summarizes the values, but when I insert this new calculated column it is not shown in the table header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 14:10:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3390389#M127813</guid>
      <dc:creator>mnb_dk</dc:creator>
      <dc:date>2023-08-21T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add TOTAL column within table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3390413#M127815</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="427251" data-lia-user-login="mnb_dk" class="lia-mention lia-mention-user"&gt;mnb_dk&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please provide sample data&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 14:19:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3390413#M127815</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-21T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add TOTAL column within table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3390429#M127818</link>
      <description>&lt;P&gt;The data is sensitive &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is how the table is set up:&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 14:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3390429#M127818</guid>
      <dc:creator>mnb_dk</dc:creator>
      <dc:date>2023-08-21T14:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add TOTAL column within table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3390485#M127820</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="427251" data-lia-user-login="mnb_dk" class="lia-mention lia-mention-user"&gt;mnb_dk&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Difficult to guess without sample data but could it be something like this?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Total Amount = 
SUMX ( 
    VALUES ( G_L_Amount_Numbers[G_L_Amount_No] ),
    IF ( 
        G_L_Amount_Numbers[G_L_Amount_No] = "Total",
        CALCULATE ( 
            SUM ( 'Table'[Amount] ), 
            G_L_Amount_Numbers[G_L_Amount_No] &amp;lt;&amp;gt; "2220", 
            ALL ( G_L_Amount_Numbers[Index] ) 
        ),
        SUM ( 'Table'[Amount] )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Aug 2023 14:53:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3390485#M127820</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-21T14:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add TOTAL column within table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3392122#M127898</link>
      <description>&lt;P&gt;Thanks for taking your time to help.&lt;/P&gt;&lt;P&gt;For some reason my posts keep getting deleted.&lt;/P&gt;&lt;P&gt;I would like to add sample data, but there is no way I can add it here.&lt;/P&gt;&lt;P&gt;Can you use below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Document Account Amount&lt;BR /&gt;332211 1110 100&lt;BR /&gt;443322 1220 400&lt;BR /&gt;554433 2220 300&lt;BR /&gt;776655 1450 200&lt;BR /&gt;665544 1110 400&lt;BR /&gt;998877 1450 900&lt;BR /&gt;887766 1450 600&lt;BR /&gt;334466 1110 200&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:36:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3392122#M127898</guid>
      <dc:creator>mnb_dk</dc:creator>
      <dc:date>2023-08-22T09:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add TOTAL column within table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3392123#M127899</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for taking your time to help.&lt;/P&gt;&lt;P&gt;For some reason my posts keep getting deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add sample data, but there is no way I can add it here. Please see below post for sample data.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:37:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3392123#M127899</guid>
      <dc:creator>mnb_dk</dc:creator>
      <dc:date>2023-08-22T09:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add TOTAL column within table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3392124#M127900</link>
      <description>&lt;P&gt;Document Account Amount&lt;BR /&gt;332211 1110 100&lt;BR /&gt;443322 1220 400&lt;BR /&gt;554433 2220 300&lt;BR /&gt;776655 1450 200&lt;BR /&gt;665544 1110 400&lt;BR /&gt;998877 1450 900&lt;BR /&gt;887766 1450 600&lt;BR /&gt;334466 1110 200&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:37:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3392124#M127900</guid>
      <dc:creator>mnb_dk</dc:creator>
      <dc:date>2023-08-22T09:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add TOTAL column within table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3392216#M127903</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="427251" data-lia-user-login="mnb_dk" class="lia-mention lia-mention-user"&gt;mnb_dk&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;please follow the power query transformation details in the sample file.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Total Amount = 
SUMX ( 
    VALUES ( G_L_Amount_Numbers[Account] ),
    IF ( 
        G_L_Amount_Numbers[Account] = "Total",
        CALCULATE ( 
            SUM ( 'Table'[Amount] ), 
            G_L_Amount_Numbers[Account] &amp;lt;&amp;gt; "2220", 
            ALL ( G_L_Amount_Numbers[Index] ) 
        ),
        SUM ( 'Table'[Amount] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:19:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-TOTAL-column-within-table/m-p/3392216#M127903</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-22T10:19:44Z</dc:date>
    </item>
  </channel>
</rss>

