<?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: Create a column in table A that calculates values from Table B using date filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-in-table-A-that-calculates-values-from-Table-B/m-p/3569930#M137643</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="630739" data-lia-user-login="ozturkk" class="lia-mention lia-mention-user"&gt;ozturkk&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please try this:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Bugüne Tahmini Gelir =
VAR __Date = TODAY()
RETURN
 CALCULATE(
    SUM(TableB[INCOME]),
        TableB[Date] &amp;lt;= __Date
    )&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 06 Dec 2023 07:44:09 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2023-12-06T07:44:09Z</dc:date>
    <item>
      <title>Create a column in table A that calculates values from Table B using date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-in-table-A-that-calculates-values-from-Table-B/m-p/3569904#M137639</link>
      <description>&lt;P&gt;I'm a new user, so bear with me:&lt;/P&gt;&lt;P&gt;I have a pretty simple data set in Table B that has data for when each ID is expected to receive revenue.&amp;nbsp; It looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So there can be multiple rows for each ID.&amp;nbsp; I want to create a new column in Table A (which has only one row for each ID) that brings the total income for each project when the date is today or earlier.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, but it is bringing me the same value for all IDs:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Bugüne Tahmini Gelir =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TableB&lt;/SPAN&gt;&lt;SPAN&gt;[INCOME]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TableB&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;TableB&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Dec 2023 07:23:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-in-table-A-that-calculates-values-from-Table-B/m-p/3569904#M137639</guid>
      <dc:creator>ozturkk</dc:creator>
      <dc:date>2023-12-06T07:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column in table A that calculates values from Table B using date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-in-table-A-that-calculates-values-from-Table-B/m-p/3569907#M137640</link>
      <description>&lt;P&gt;l have also tried this to no avail:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUMX( VALUES('TableB'[ID]), CALCULATE( SUM('TableB'[INCOME]), 'TableB'[DATE] &amp;lt;= TODAY(), 'TableB'[ID] = EARLIER('TableB'[ID]) ) )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 07:25:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-in-table-A-that-calculates-values-from-Table-B/m-p/3569907#M137640</guid>
      <dc:creator>ozturkk</dc:creator>
      <dc:date>2023-12-06T07:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column in table A that calculates values from Table B using date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-in-table-A-that-calculates-values-from-Table-B/m-p/3569930#M137643</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="630739" data-lia-user-login="ozturkk" class="lia-mention lia-mention-user"&gt;ozturkk&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please try this:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Bugüne Tahmini Gelir =
VAR __Date = TODAY()
RETURN
 CALCULATE(
    SUM(TableB[INCOME]),
        TableB[Date] &amp;lt;= __Date
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 07:44:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-in-table-A-that-calculates-values-from-Table-B/m-p/3569930#M137643</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-06T07:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column in table A that calculates values from Table B using date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-in-table-A-that-calculates-values-from-Table-B/m-p/3569950#M137644</link>
      <description>&lt;P&gt;Thank you for your reply. Sadly, I am still getting the same value for all IDs&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 07:54:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-in-table-A-that-calculates-values-from-Table-B/m-p/3569950#M137644</guid>
      <dc:creator>ozturkk</dc:creator>
      <dc:date>2023-12-06T07:54:20Z</dc:date>
    </item>
  </channel>
</rss>

