<?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: cumulate a mesure month by month from a startdate to an enddate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulate-a-mesure-month-by-month-from-a-startdate-to-an-enddate/m-p/2359584#M60243</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It did not resolve my problem, perhaps because I did not know how to implement it for my case, but it inspired me to find another solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a calculated table (month, mesure1) and after that I was able to do the sum of the mesure month by month for a choosen period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 19:40:02 GMT</pubDate>
    <dc:creator>ouafaa</dc:creator>
    <dc:date>2022-02-24T19:40:02Z</dc:date>
    <item>
      <title>cumulate a mesure month by month from a startdate to an enddate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulate-a-mesure-month-by-month-from-a-startdate-to-an-enddate/m-p/2358306#M60156</link>
      <description>&lt;P&gt;I have a measure Mesure1 that I calculate according to a chosen month and year.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now I want to use this mesure to calcul another mesure.&lt;BR /&gt;the rule is that when I choose a periode : startdate to enddate, the new mesure "Mesure2" should accumulate the result of the mesure1 for each month from the startdate to the enddate&lt;BR /&gt;and finally this result should be divided by the number of months that are includes on the periode between the startdate to the enddate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I do this with dax ?&lt;BR /&gt;thank you for any help&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:40:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulate-a-mesure-month-by-month-from-a-startdate-to-an-enddate/m-p/2358306#M60156</guid>
      <dc:creator>ouafaa</dc:creator>
      <dc:date>2022-02-24T09:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: cumulate a mesure month by month from a startdate to an enddate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulate-a-mesure-month-by-month-from-a-startdate-to-an-enddate/m-p/2358501#M60174</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MTD with conditions = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_sdate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar example'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_edate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar example'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;months&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Month]&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Aggregation[Duration(Secs)]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;_sdate&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;_edate&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DATESMTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;months&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Use second calendar for the selected period and have a relationship between your fact table and calendar.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Feb 2022 10:39:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulate-a-mesure-month-by-month-from-a-startdate-to-an-enddate/m-p/2358501#M60174</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-24T10:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: cumulate a mesure month by month from a startdate to an enddate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulate-a-mesure-month-by-month-from-a-startdate-to-an-enddate/m-p/2359584#M60243</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It did not resolve my problem, perhaps because I did not know how to implement it for my case, but it inspired me to find another solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a calculated table (month, mesure1) and after that I was able to do the sum of the mesure month by month for a choosen period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 19:40:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulate-a-mesure-month-by-month-from-a-startdate-to-an-enddate/m-p/2359584#M60243</guid>
      <dc:creator>ouafaa</dc:creator>
      <dc:date>2022-02-24T19:40:02Z</dc:date>
    </item>
  </channel>
</rss>

