<?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 formula to get the last month total and then divide by 3 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/formula-to-get-the-last-month-total-and-then-divide-by-3/m-p/3537852#M135941</link>
    <description>&lt;P&gt;I want to find the total number for last month and then divide it by 3.&amp;nbsp; I need help with a formual for that.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2023 20:32:56 GMT</pubDate>
    <dc:creator>WNelson</dc:creator>
    <dc:date>2023-11-16T20:32:56Z</dc:date>
    <item>
      <title>formula to get the last month total and then divide by 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/formula-to-get-the-last-month-total-and-then-divide-by-3/m-p/3537852#M135941</link>
      <description>&lt;P&gt;I want to find the total number for last month and then divide it by 3.&amp;nbsp; I need help with a formual for that.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 20:32:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/formula-to-get-the-last-month-total-and-then-divide-by-3/m-p/3537852#M135941</guid>
      <dc:creator>WNelson</dc:creator>
      <dc:date>2023-11-16T20:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: formula to get the last month total and then divide by 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/formula-to-get-the-last-month-total-and-then-divide-by-3/m-p/3537920#M135943</link>
      <description>&lt;P&gt;measure_name =&lt;BR /&gt;VAR maxMonth = MAX(YourTableName[Start (UTC) Month])&amp;nbsp;&lt;BR /&gt;VAR sumLastMonth = CALCULATE(SUM(YourTableName[Total]), YourTableName[Start (UTC) Month] = maxMonth )&amp;nbsp;&lt;BR /&gt;RETURN DIVIDE(sumLastMonth ,3)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here's a breakdown of what this formula does:&lt;BR /&gt;1. VAR maxMonth = MAX(YourTableName[Start (UTC) Month])` determines the most recent month in your data.&lt;BR /&gt;2. VAR sumLastMonth = CALCULATE(SUM(YourTableName[Total]), YourTableName[Start (UTC) Month] = maxMonth ) calculates the total for the items in the last month.&lt;BR /&gt;3. RETURN DIVIDE(sumLastMonth, 3) divides the total sum from the last month by 3 and returns this value.&lt;/P&gt;&lt;P&gt;Make sure to adjust the column names like `Start (UTC) Month` and `Total` to match the columns in your table.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 21:22:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/formula-to-get-the-last-month-total-and-then-divide-by-3/m-p/3537920#M135943</guid>
      <dc:creator>oritam3210</dc:creator>
      <dc:date>2023-11-16T21:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: formula to get the last month total and then divide by 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/formula-to-get-the-last-month-total-and-then-divide-by-3/m-p/3541682#M136101</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="604109" data-lia-user-login="WNelson" class="lia-mention lia-mention-user"&gt;WNelson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last Month total / 3 = 
VAR _LASTMONTHSTART = EOMONTH(TODAY(),-2)+1
VAR _LASTMONTHTOTAL = CALCULATE(SUM('Table'[Total]),FILTER('Table','Table'[Start (UTC) Month] = _LASTMONTHSTART))
RETURN
DIVIDE(_LASTMONTHTOTAL,3)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 06:28:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/formula-to-get-the-last-month-total-and-then-divide-by-3/m-p/3541682#M136101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-20T06:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: formula to get the last month total and then divide by 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/formula-to-get-the-last-month-total-and-then-divide-by-3/m-p/3547092#M136408</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="462987" data-lia-user-login="oritam3210" class="lia-mention lia-mention-user"&gt;oritam3210&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 15:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/formula-to-get-the-last-month-total-and-then-divide-by-3/m-p/3547092#M136408</guid>
      <dc:creator>WNelson</dc:creator>
      <dc:date>2023-11-22T15:49:23Z</dc:date>
    </item>
  </channel>
</rss>

