<?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: Cumulative sum between a date range from two different date ranges in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-between-a-date-range-from-two-different-date/m-p/855146#M6811</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;Try this :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum of Amounts = SUMX(Production,IF(Production[Production date]&amp;gt;MAX(mySecond[Install Date]),Production[Amount],0))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 01:00:39 GMT</pubDate>
    <dc:creator>Nathaniel_C</dc:creator>
    <dc:date>2019-11-25T01:00:39Z</dc:date>
    <item>
      <title>Cumulative sum between a date range from two different date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-between-a-date-range-from-two-different-date/m-p/854928#M6803</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first time using the forum so hopefully I have disobeyed any rules, apologises in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to sum an amount from one table based upon a date from another table. The amount can't be totalled if the production date is in the past of the install date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my first Table.&lt;/P&gt;&lt;P&gt;Production Table&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Production date&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2017&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2017&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2018&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2019&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my second table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Asset ID&lt;/TD&gt;&lt;TD&gt;Install Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 5&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2017&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I would expect my results as this.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Asset ID&lt;/TD&gt;&lt;TD&gt;Install Date&lt;/TD&gt;&lt;TD&gt;What I want&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2017&lt;/TD&gt;&lt;TD&gt;565&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2018&lt;/TD&gt;&lt;TD&gt;550&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2020&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;asset 5&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1/1/2017&lt;/TD&gt;&lt;TD&gt;565&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a slicer table that has a unique date range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying = calculate (sum(table1[amount])), filter(allselected(table1), production date &amp;gt; userrelationship(production date, install date)), but that doesn't seem to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas would be very appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2019 06:53:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-between-a-date-range-from-two-different-date/m-p/854928#M6803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-24T06:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum between a date range from two different date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-between-a-date-range-from-two-different-date/m-p/855146#M6811</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;Try this :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum of Amounts = SUMX(Production,IF(Production[Production date]&amp;gt;MAX(mySecond[Install Date]),Production[Amount],0))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 01:00:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-between-a-date-range-from-two-different-date/m-p/855146#M6811</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-11-25T01:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum between a date range from two different date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-between-a-date-range-from-two-different-date/m-p/855157#M6813</link>
      <description>&lt;P&gt;LEGEND!!!!! KUDOS&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 01:31:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-between-a-date-range-from-two-different-date/m-p/855157#M6813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-25T01:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum between a date range from two different date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-between-a-date-range-from-two-different-date/m-p/855158#M6814</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;, you are welcome!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 01:32:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-between-a-date-range-from-two-different-date/m-p/855158#M6814</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-11-25T01:32:24Z</dc:date>
    </item>
  </channel>
</rss>

