<?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: Sum parts of a column based on a different column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893213#M93982</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;A calculated column. At first I thought it was right because all of the job_id's in the beginning are the same number but if I filter to just one specific job_id it does not start a the first transaction_amount but more the amount where the running total is for example in this snip job_id 17150 starts on june 20 and the ifrst transaction_amount is $500.93 but it is showing as 792,369.88&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 18:17:22 GMT</pubDate>
    <dc:creator>mweber87</dc:creator>
    <dc:date>2022-11-08T18:17:22Z</dc:date>
    <item>
      <title>Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889831#M93769</link>
      <description>&lt;P&gt;I have a data set that has a job_id column and a transaction_amount column. The transaction amount is related to a specific date. The job_id column has over 5000 individual job_id's. Each job_id shows up multiple times. I am trying to sum the transaction amount per job id. I know I could filter out each one individually. However, I want to create a column or a measure that would give me the sum of the entire life of the job_id.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 16:24:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889831#M93769</guid>
      <dc:creator>mweber87</dc:creator>
      <dc:date>2022-11-07T16:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889876#M93771</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464527" data-lia-user-login="mweber87" class="lia-mention lia-mention-user"&gt;mweber87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Total Job Tranactions =
CALCULATE (
    SUM ( 'Table'[Transaction_Amount] ),
    REMOVEFILTERS (),
    VALUES ( 'Table'[Job_ID] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 07 Nov 2022 16:46:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889876#M93771</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-07T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889913#M93775</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you that gives me a column with the total transactions for all the jobs, I need it to be per job_id. There are over 5000 job id's but over 100,000 transaction amounts&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;</description>
      <pubDate>Mon, 07 Nov 2022 16:59:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889913#M93775</guid>
      <dc:creator>mweber87</dc:creator>
      <dc:date>2022-11-07T16:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889922#M93776</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464527" data-lia-user-login="mweber87" class="lia-mention lia-mention-user"&gt;mweber87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I can see different values. What exactly do you mean by "&lt;SPAN&gt;&lt;EM&gt;that gives me a column with the total transactions for all the jobs&lt;/EM&gt;"? Actually this code should give you the total value for each each job for all dates.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:04:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889922#M93776</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-07T17:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889934#M93779</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives me the same number for every row. I need the total transaction amount for all job_ids. So for example job_id 16246 has 300 transaction_amounts I need to sum up all of these transactions to find the tota transactions amount for the life of the job. And I need to do this for every job_id (5259 id's)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889934#M93779</guid>
      <dc:creator>mweber87</dc:creator>
      <dc:date>2022-11-07T17:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889951#M93784</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464527" data-lia-user-login="mweber87" class="lia-mention lia-mention-user"&gt;mweber87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This is exactly what this code should give you. Are you sure this the grand total amount or this is just the total amount of the 300 transactions of Job_ID&amp;nbsp;&lt;SPAN&gt;16246? Would you please paste a screenshot of the code. Otherwise please try&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Total Job Tranactions =
CALCULATE (
    SUM ( 'Table'[Transaction_Amount] ),
    ALLEXCEPT ( 'Table', 'Table'[Job_ID] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:16:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2889951#M93784</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-07T17:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2892580#M93928</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;the last code you sent worked! Thank you!!!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 14:36:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2892580#M93928</guid>
      <dc:creator>mweber87</dc:creator>
      <dc:date>2022-11-08T14:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2892737#M93937</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;using the ALLEXCEPT could I add another column with a running total instead of sum total?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:24:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2892737#M93937</guid>
      <dc:creator>mweber87</dc:creator>
      <dc:date>2022-11-08T15:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2892794#M93942</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464527" data-lia-user-login="mweber87" class="lia-mention lia-mention-user"&gt;mweber87&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please clarify?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:50:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2892794#M93942</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-08T15:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2892886#M93949</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;I am now trying to make a column with a running total for each job_id. I wrote this but now my computer is stuck on trying to work on it. So maybe there is a more efficient way to get the result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rolling Total by Job Id=&lt;BR /&gt;VAR CurrentDate = d[transaction_date]&lt;/P&gt;&lt;P&gt;VAR CurrentJobID = d[Job_Id]&lt;BR /&gt;VAR Filtered = FILTER(d, d[Transaction_Amount] &amp;lt;= CurrentDate &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;d[Job_Id] = CurrentJobId)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculate(SUM(d[transaction_amount]), Filtered)&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 16:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2892886#M93949</guid>
      <dc:creator>mweber87</dc:creator>
      <dc:date>2022-11-08T16:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893056#M93963</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464527" data-lia-user-login="mweber87" class="lia-mention lia-mention-user"&gt;mweber87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Rolling Total by Job Id =
VAR CurrentDate = d[transaction_date]
VAR CurrentJobTable =
    CALCULATETABLE ( d, ALLEXCEPT ( d, d[Job_Id] ) )
VAR Filtered =
    FILTER ( d, d[Transaction_date] &amp;lt;= CurrentDate )
RETURN
    SUMX ( Filtered, d[transaction_amount] )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Nov 2022 17:02:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893056#M93963</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-08T17:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893202#M93979</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;I just realized that did not do a running total based on the job_id, it just did a running total on the whole list.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 18:05:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893202#M93979</guid>
      <dc:creator>mweber87</dc:creator>
      <dc:date>2022-11-08T18:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893206#M93980</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464527" data-lia-user-login="mweber87" class="lia-mention lia-mention-user"&gt;mweber87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Are you creating a measure of a calculated column? can you share some screenshot?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 18:08:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893206#M93980</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-08T18:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893213#M93982</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;A calculated column. At first I thought it was right because all of the job_id's in the beginning are the same number but if I filter to just one specific job_id it does not start a the first transaction_amount but more the amount where the running total is for example in this snip job_id 17150 starts on june 20 and the ifrst transaction_amount is $500.93 but it is showing as 792,369.88&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 18:17:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893213#M93982</guid>
      <dc:creator>mweber87</dc:creator>
      <dc:date>2022-11-08T18:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893289#M93986</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464527" data-lia-user-login="mweber87" class="lia-mention lia-mention-user"&gt;mweber87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Oh!!! You are right. There is a mistake in the code. Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Rolling Total by Job Id =
VAR CurrentDate = d[transaction_date]
VAR CurrentJobTable =
    CALCULATETABLE ( d, ALLEXCEPT ( d, d[Job_Id] ) )
VAR Filtered =
    FILTER ( CurrentJobTable, d[Transaction_date] &amp;lt;= CurrentDate )
RETURN
    SUMX ( Filtered, d[transaction_amount] )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Nov 2022 19:00:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2893289#M93986</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-08T19:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum parts of a column based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2895699#M94127</link>
      <description>&lt;P&gt;ahhh yes that worked! Thank you so much!!!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 15:26:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-parts-of-a-column-based-on-a-different-column/m-p/2895699#M94127</guid>
      <dc:creator>mweber87</dc:creator>
      <dc:date>2022-11-09T15:26:23Z</dc:date>
    </item>
  </channel>
</rss>

