<?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 Is there a Dax or Var formula to sum across rows for 3,6,9 months? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-a-Dax-or-Var-formula-to-sum-across-rows-for-3-6-9/m-p/3647823#M141277</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find a solution to add columns that sum across rows for customers as in the example below:&lt;/P&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 09:40:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-19T09:40:34Z</dc:date>
    <item>
      <title>Is there a Dax or Var formula to sum across rows for 3,6,9 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-a-Dax-or-Var-formula-to-sum-across-rows-for-3-6-9/m-p/3647823#M141277</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find a solution to add columns that sum across rows for customers as in the example below:&lt;/P&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 09:40:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-a-Dax-or-Var-formula-to-sum-across-rows-for-3-6-9/m-p/3647823#M141277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-19T09:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Dax or Var formula to sum across rows for 3,6,9 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-a-Dax-or-Var-formula-to-sum-across-rows-for-3-6-9/m-p/3647950#M141282</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;You can try these formulas for creating calculated column.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Last 3 Months = 
VAR CurrentMonth = MAX(Table[Month])
RETURN
CALCULATE(
    SUM(Table[Revenue]),
    FILTER(
        Table,
        Table[Customer] = EARLIER(Table[Customer]) &amp;amp;&amp;amp;
        Table[Month] &amp;gt;= CurrentMonth - 2
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Last 6 Months = 
VAR CurrentMonth = MAX(Table[Month])
RETURN
CALCULATE(
    SUM(Table[Revenue]),
    FILTER(
        Table,
        Table[Customer] = EARLIER(Table[Customer]) &amp;amp;&amp;amp;
        Table[Month] &amp;gt;= CurrentMonth - 5
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Last 9 Months = 
VAR CurrentMonth = MAX(Table[Month])
RETURN
CALCULATE(
    SUM(Table[Revenue]),
    FILTER(
        Table,
        Table[Customer] = EARLIER(Table[Customer]) &amp;amp;&amp;amp;
        Table[Month] &amp;gt;= CurrentMonth - 8
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Jan 2024 10:37:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-a-Dax-or-Var-formula-to-sum-across-rows-for-3-6-9/m-p/3647950#M141282</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2024-01-19T10:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Dax or Var formula to sum across rows for 3,6,9 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-a-Dax-or-Var-formula-to-sum-across-rows-for-3-6-9/m-p/3650240#M141400</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478644" data-lia-user-login="saurabhtd" class="lia-mention lia-mention-user"&gt;saurabhtd&lt;/a&gt;&amp;nbsp;what format should the folling be?&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt; &amp;nbsp;'Table'[Month]&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 16:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-a-Dax-or-Var-formula-to-sum-across-rows-for-3-6-9/m-p/3650240#M141400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-21T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Dax or Var formula to sum across rows for 3,6,9 months?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-a-Dax-or-Var-formula-to-sum-across-rows-for-3-6-9/m-p/3661538#M141891</link>
      <description>&lt;P&gt;Is it possible to add a if statement here as well? So if 0 revenue, then "Lost Customer"&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 22:46:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-there-a-Dax-or-Var-formula-to-sum-across-rows-for-3-6-9/m-p/3661538#M141891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-25T22:46:14Z</dc:date>
    </item>
  </channel>
</rss>

