<?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 Cumulative decrease quantity in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-decrease-quantity/m-p/938677#M9909</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;I want to have the last column decreasing according to the previous one.&lt;BR /&gt;Ideally, cumul_col should reach zero in the time slot 23-00.&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2020 10:18:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-19T10:18:29Z</dc:date>
    <item>
      <title>Cumulative decrease quantity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-decrease-quantity/m-p/938677#M9909</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I want to have the last column decreasing according to the previous one.&lt;BR /&gt;Ideally, cumul_col should reach zero in the time slot 23-00.&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 10:18:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-decrease-quantity/m-p/938677#M9909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T10:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative decrease quantity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-decrease-quantity/m-p/939132#M9933</link>
      <description>&lt;P&gt;Here's a pattern for a cumulative decreasing amount.&amp;nbsp; I'm not sure if it is the best answer for your model because you haven't shown the Forecasts table and any relationship between the tables.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RunningTotal = VAR _Hour = TableL[Hour - Start]
               VAR _AddCol = CALCULATE(SUM(TableL[Colissimo]), FILTER(TableL, TableL[Hour - Start] &amp;lt; _Hour)) 
RETURN
    TableL[value] - _AddCol&lt;/LI-CODE&gt;
&lt;P&gt;I split the Hour column so that we have a numeric column to use as a kind of index.&amp;nbsp; It's just the first number in each Hour field.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 14:46:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-decrease-quantity/m-p/939132#M9933</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2020-02-19T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative decrease quantity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-decrease-quantity/m-p/939135#M9934</link>
      <description>&lt;P&gt;take look at this solution :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 14:47:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-decrease-quantity/m-p/939135#M9934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T14:47:59Z</dc:date>
    </item>
  </channel>
</rss>

