<?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 New Condition Column - Sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Condition-Column-Sum/m-p/2215630#M52437</link>
    <description>&lt;P&gt;Hello Friends&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help here !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let's say I have 'Table1', and 'Tabel2'. the two tables have the same column [A] with the same content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I write the folloing in DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a new &lt;STRONG&gt;column [B]&lt;/STRONG&gt; to 'Table1', which is the &lt;STRONG&gt;sum&lt;/STRONG&gt; of 'Table2'[X] when the two columns [A] is &lt;STRONG&gt;equal&lt;/STRONG&gt; on both tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciate your help.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 08:09:47 GMT</pubDate>
    <dc:creator>Hadill</dc:creator>
    <dc:date>2021-12-01T08:09:47Z</dc:date>
    <item>
      <title>New Condition Column - Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Condition-Column-Sum/m-p/2215630#M52437</link>
      <description>&lt;P&gt;Hello Friends&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help here !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let's say I have 'Table1', and 'Tabel2'. the two tables have the same column [A] with the same content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I write the folloing in DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a new &lt;STRONG&gt;column [B]&lt;/STRONG&gt; to 'Table1', which is the &lt;STRONG&gt;sum&lt;/STRONG&gt; of 'Table2'[X] when the two columns [A] is &lt;STRONG&gt;equal&lt;/STRONG&gt; on both tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciate your help.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 08:09:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Condition-Column-Sum/m-p/2215630#M52437</guid>
      <dc:creator>Hadill</dc:creator>
      <dc:date>2021-12-01T08:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: New Condition Column - Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Condition-Column-Sum/m-p/2215832#M52452</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Firstly bring the Column X for Table 2 in your Table 1 by LOOKUPVALUE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a new column in your Table 1:&lt;/P&gt;&lt;P&gt;X= LOOKUPVALUE(Table2[x], Table2[A], Table1[1])&lt;BR /&gt;&lt;BR /&gt;Mark this as a solution if I answered your question.Kudos are always appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 09:27:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Condition-Column-Sum/m-p/2215832#M52452</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-12-01T09:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: New Condition Column - Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Condition-Column-Sum/m-p/2216904#M52501</link>
      <description>&lt;P&gt;This assumes there is a unique X value per A value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can avoid this summing X instead.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;B = CALCULATE ( SUM ( Table2[X] ), Table2[A] = EARLIER ( Table1[A] ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Dec 2021 22:24:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Condition-Column-Sum/m-p/2216904#M52501</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-01T22:24:27Z</dc:date>
    </item>
  </channel>
</rss>

