<?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: DAX Help! Return date that cumulative total surpassed a column value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Return-date-that-cumulative-total-surpassed-a-column/m-p/1663182#M33930</link>
    <description>&lt;P&gt;hi i have a problem understanding context transition but i think this works.&lt;/P&gt;&lt;P&gt;probably a much neater way of doing it.&lt;/P&gt;&lt;P&gt;had to fiddle your data as none of the targets met as you put them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 13:09:44 GMT</pubDate>
    <dc:creator>rfigtree</dc:creator>
    <dc:date>2021-02-12T13:09:44Z</dc:date>
    <item>
      <title>DAX Help! Return date that cumulative total surpassed a column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Return-date-that-cumulative-total-surpassed-a-column/m-p/1662711#M33910</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&lt;SPAN&gt;I have a campaign table that look like the below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Campaign ID&lt;/TD&gt;&lt;TD&gt;Target Price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;£50,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;£70,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;£120,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;£35,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&lt;SPAN&gt;and a table of deals that looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Deal ID&lt;/TD&gt;&lt;TD&gt;Campaign ID&lt;/TD&gt;&lt;TD&gt;Price&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;£5,000&lt;/TD&gt;&lt;TD&gt;08/02/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;£7,000&lt;/TD&gt;&lt;TD&gt;24/12/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;£11,000&lt;/TD&gt;&lt;TD&gt;12/01/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;£13,500&lt;/TD&gt;&lt;TD&gt;30/10/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;£3,500&lt;/TD&gt;&lt;TD&gt;01/02/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;The 2 tables are joined in a 1-to-many via campaign ID. Now, what I would like to do, preferably in a calculated column on the campaign table is return the date at which the cumulative sum of "Price" surpassed the Target Price.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;So the logic would look something like this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Use the date on the deal table to create a cumulative running total of all deals for each campaign.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Monitor when the cumulative running total surpasses the target price&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Return the date that final deal happened to take us over the target price&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Any help would be great,&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 10:15:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Return-date-that-cumulative-total-surpassed-a-column/m-p/1662711#M33910</guid>
      <dc:creator>CSmith_HW</dc:creator>
      <dc:date>2021-02-12T10:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help! Return date that cumulative total surpassed a column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Return-date-that-cumulative-total-surpassed-a-column/m-p/1663182#M33930</link>
      <description>&lt;P&gt;hi i have a problem understanding context transition but i think this works.&lt;/P&gt;&lt;P&gt;probably a much neater way of doing it.&lt;/P&gt;&lt;P&gt;had to fiddle your data as none of the targets met as you put them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 13:09:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Return-date-that-cumulative-total-surpassed-a-column/m-p/1663182#M33930</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-02-12T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help! Return date that cumulative total surpassed a column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Return-date-that-cumulative-total-surpassed-a-column/m-p/1663364#M33935</link>
      <description>&lt;P&gt;Yep I used dummy data in my example - it works though thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Return-date-that-cumulative-total-surpassed-a-column/m-p/1663364#M33935</guid>
      <dc:creator>CSmith_HW</dc:creator>
      <dc:date>2021-02-12T14:51:42Z</dc:date>
    </item>
  </channel>
</rss>

