<?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: Calculated Column: Sum of another column from same table based on criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-Sum-of-another-column-from-same-table-based-on/m-p/1401951#M25815</link>
    <description>&lt;P&gt;OK, you're on your way.&lt;/P&gt;
&lt;P&gt;You could improve it by amalgamating the two FILTER clauses into one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILTER(Pallet_projection,&amp;nbsp;Pallet_projection[dateke...] = 0&amp;nbsp; &amp;amp;&amp;amp;&amp;nbsp;Pallet_projection[factor...] = EARLIER&amp;nbsp;Pallet_projection[factor...]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've just shortened my typing with .......&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:04:42 GMT</pubDate>
    <dc:creator>HotChilli</dc:creator>
    <dc:date>2020-09-29T13:04:42Z</dc:date>
    <item>
      <title>Calculated Column: Sum of another column from same table based on criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-Sum-of-another-column-from-same-table-based-on/m-p/1401676#M25799</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to sum a value in a table to create a pallet projection based on a starting stock position, inbound and outbound volume.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of this data is within the same table but when I try to use a calculate function to bring back a value within the same table based on a couple of conditions, the formula simply brings back the total value from the column I am summing, rather than the specific sum of only the row criteria (product code).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Difficult to explain but the intention is to create a pallt projectio at product level which I can then roll up to various levels of aggregation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To cut a long story short, it needs to be done like this in a calculated column format as the projection itself needs to be worked out in PBI itself during each refresh)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:51:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-Sum-of-another-column-from-same-table-based-on/m-p/1401676#M25799</guid>
      <dc:creator>rh203</dc:creator>
      <dc:date>2020-09-29T10:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column: Sum of another column from same table based on criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-Sum-of-another-column-from-same-table-based-on/m-p/1401878#M25806</link>
      <description>&lt;P&gt;I think we'll need more information.&lt;/P&gt;
&lt;P&gt;It's a little difficult to decipher the picture posted because all the scoring out and zero values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to get the sum of the 'Pallet Count Latest' value for all the rows that have the same Datekey Index and Factory Code as the current row?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:30:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-Sum-of-another-column-from-same-table-based-on/m-p/1401878#M25806</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2020-09-29T12:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column: Sum of another column from same table based on criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-Sum-of-another-column-from-same-table-based-on/m-p/1401884#M25807</link>
      <description>&lt;P&gt;Hi, Thanks for the reply - yes sorry I had to redact for obvious reasons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I worked out the solution in the last 15 mins - see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like 'EARLIER' is key to pick up the current row as the criteria for a filter within the CALCULATE function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's done the job.&lt;/P&gt;&lt;P&gt;&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;&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>Tue, 29 Sep 2020 12:33:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-Sum-of-another-column-from-same-table-based-on/m-p/1401884#M25807</guid>
      <dc:creator>rh203</dc:creator>
      <dc:date>2020-09-29T12:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column: Sum of another column from same table based on criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-Sum-of-another-column-from-same-table-based-on/m-p/1401951#M25815</link>
      <description>&lt;P&gt;OK, you're on your way.&lt;/P&gt;
&lt;P&gt;You could improve it by amalgamating the two FILTER clauses into one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILTER(Pallet_projection,&amp;nbsp;Pallet_projection[dateke...] = 0&amp;nbsp; &amp;amp;&amp;amp;&amp;nbsp;Pallet_projection[factor...] = EARLIER&amp;nbsp;Pallet_projection[factor...]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've just shortened my typing with .......&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:04:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-Sum-of-another-column-from-same-table-based-on/m-p/1401951#M25815</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2020-09-29T13:04:42Z</dc:date>
    </item>
  </channel>
</rss>

