<?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: Running total at the end off each month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-at-the-end-off-each-month/m-p/1830142#M38903</link>
    <description>&lt;P&gt;I give an example:&lt;/P&gt;&lt;P&gt;On january I have 2 apples, on february 1 apple, on march 8 apple. So:&lt;/P&gt;&lt;P&gt;JANUARY FORMULA RESULT=2&lt;/P&gt;&lt;P&gt;FEBRUARY FORMULA RESULT= 1 + 2 =3&lt;/P&gt;&lt;P&gt;MARCH FORMULA RESULT= 1 + 2 + 8 = 11&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 13:00:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-07T13:00:54Z</dc:date>
    <item>
      <title>Running total at the end off each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-at-the-end-off-each-month/m-p/1830087#M38898</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create 12 measures for the 12 months of this year in which I calculate a running total up to each end of the months.&lt;/P&gt;&lt;P&gt;For now I'm using this type of formula, but I would like to make it more general (not only for this year, but also for years to come):&lt;/P&gt;&lt;P&gt;EXAMPLE FOR JANUARY:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SP_Net amount prog Mar = 
CALCULATE([SP_Net amount],
        'D - Date'[Date] &amp;gt;= DATE ( 2021, 1, 1 ) &amp;amp;&amp;amp;
        'D - Date'[Date] &amp;lt;= DATE ( 2021, 3, 31 ))&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;DIV&gt;So I ask you if there is a function in order to calculate the last date of each months giving me examples (I know there is ENDOFMONTH but I don't understand if it is right in this case and how to use in this case (please, use my example)&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:36:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-at-the-end-off-each-month/m-p/1830087#M38898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-07T12:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Running total at the end off each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-at-the-end-off-each-month/m-p/1830140#M38902</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure I understood your question correctly, but please try using DATESMTD or TOTALMTD function.&lt;/P&gt;&lt;P&gt;Something like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SP_Net amount prog Mar =&lt;BR /&gt;TOTALMTD ( 'D - Date'[Date], [SP_Net amount] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can share your sample pbix file's link, then I can try to understand why you needed to write your measure like above, then I can try to come up with a more accurate measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Linkedin: linkedin.com/in/jihwankim1975/&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Twitter: twitter.com/Jihwan_JHKIM&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:59:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-at-the-end-off-each-month/m-p/1830140#M38902</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-05-07T12:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Running total at the end off each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-at-the-end-off-each-month/m-p/1830142#M38903</link>
      <description>&lt;P&gt;I give an example:&lt;/P&gt;&lt;P&gt;On january I have 2 apples, on february 1 apple, on march 8 apple. So:&lt;/P&gt;&lt;P&gt;JANUARY FORMULA RESULT=2&lt;/P&gt;&lt;P&gt;FEBRUARY FORMULA RESULT= 1 + 2 =3&lt;/P&gt;&lt;P&gt;MARCH FORMULA RESULT= 1 + 2 + 8 = 11&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 13:00:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-at-the-end-off-each-month/m-p/1830142#M38903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-07T13:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running total at the end off each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-at-the-end-off-each-month/m-p/1830226#M38908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm not sure I've understood correctly what you need, but have a look at this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#amt = 
var monthEnd = ENDOFMONTH('Date'[Date])
var currentYear = SELECTEDVALUE('Date'[Year])
var result = CALCULATE(
    [#fruits],
    'Date'[Date] &amp;lt; monthEnd,
    'Date'[Year] = currentYear
)
return
result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 13:44:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-at-the-end-off-each-month/m-p/1830226#M38908</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-05-07T13:44:01Z</dc:date>
    </item>
  </channel>
</rss>

