<?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 value between two dates in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Cumulative-value-between-two-dates/m-p/519859#M16061</link>
    <description>&lt;P&gt;I tried it but doesn't work :&lt;/P&gt;&lt;PRE&gt;Mesure = 
VAR MValue = SELECTEDVALUE('12MoisGlissant'[M])
VAR M12Value =  SELECTEDVALUE('12MoisGlissant'[M-12])
RETURN
calculate(SUM('12MoisGlissant'[NB]);filter('12MoisGlissant';DATESBETWEEN('12MoisGlissant'[Début de mois];M12Value;MValue)))&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Sep 2018 11:53:42 GMT</pubDate>
    <dc:creator>PGDEV</dc:creator>
    <dc:date>2018-09-19T11:53:42Z</dc:date>
    <item>
      <title>Cumulative value between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cumulative-value-between-two-dates/m-p/519778#M16057</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone can help me please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to cumulate NB of the last X months (in this example, I used 12 months).&lt;/P&gt;&lt;P&gt;Cumul = CALCULATE(SUM('12MoisGlissant'[NB]);DATESBETWEEN('12MoisGlissant'[M];'12MoisGlissant'[M-12];'12MoisGlissant'[M]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried DATESINPERIOD but I have the same results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below :&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/9a02ee2f9cce8a9b0d4be380ad4ce14b255ed376/68747470733a2f2f692e696d6775722e636f6d2f396c484f4b71582e6a70673f31" border="0" alt="" width="1145" height="574" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have good day&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 11:54:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cumulative-value-between-two-dates/m-p/519778#M16057</guid>
      <dc:creator>PGDEV</dc:creator>
      <dc:date>2018-09-19T11:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative value between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cumulative-value-between-two-dates/m-p/519859#M16061</link>
      <description>&lt;P&gt;I tried it but doesn't work :&lt;/P&gt;&lt;PRE&gt;Mesure = 
VAR MValue = SELECTEDVALUE('12MoisGlissant'[M])
VAR M12Value =  SELECTEDVALUE('12MoisGlissant'[M-12])
RETURN
calculate(SUM('12MoisGlissant'[NB]);filter('12MoisGlissant';DATESBETWEEN('12MoisGlissant'[Début de mois];M12Value;MValue)))&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2018 11:53:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cumulative-value-between-two-dates/m-p/519859#M16061</guid>
      <dc:creator>PGDEV</dc:creator>
      <dc:date>2018-09-19T11:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative value between two dates</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cumulative-value-between-two-dates/m-p/520006#M16067</link>
      <description>&lt;P&gt;I find a solution&amp;nbsp;:&lt;/P&gt;&lt;PRE&gt;Cumul = 
VAR MValue = '12MoisGlissant'[M]
VAR M12Value =  '12MoisGlissant'[M-12]
RETURN
calculate(SUM('12MoisGlissant'[NB]);filter('12MoisGlissant';and('12MoisGlissant'[Début de mois]&amp;lt;=MValue;'12MoisGlissant'[Début de mois]&amp;gt;=M12Value)))&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cumulative-value-between-two-dates/m-p/520006#M16067</guid>
      <dc:creator>PGDEV</dc:creator>
      <dc:date>2018-09-19T14:06:01Z</dc:date>
    </item>
  </channel>
</rss>

