<?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: Sum on a dynamic date range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-on-a-dynamic-date-range/m-p/692988#M613</link>
    <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Try the following formula:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;MAT cost:= calculate([&lt;SPAN&gt;Sum of material consumption&lt;/SPAN&gt;],datesinperiod(calendar[date],lastdate(&lt;FONT&gt;calendar[date]),&lt;/FONT&gt;-1,year))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Good luck,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;José Luis&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 15:53:57 GMT</pubDate>
    <dc:creator>joseluis1969</dc:creator>
    <dc:date>2019-05-16T15:53:57Z</dc:date>
    <item>
      <title>Sum on a dynamic date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-on-a-dynamic-date-range/m-p/692955#M612</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to calculate the sum on a dynamic date range, for example:&lt;BR /&gt;For March 2019, the sum of material consumption must be:&lt;BR /&gt;= Sum of material consumption (April 2018 to March 2019)&lt;/P&gt;&lt;P&gt;Another example :&lt;BR /&gt;For September 2019, the sum of material consumption must be:&lt;BR /&gt;= Sum of material consumption (October 2018 to September 2019)&lt;/P&gt;&lt;P&gt;Please what is the DAX formula to meet this need?&lt;/P&gt;&lt;P&gt;Thank you.&lt;BR /&gt;Cordially.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 15:23:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-on-a-dynamic-date-range/m-p/692955#M612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-16T15:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum on a dynamic date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-on-a-dynamic-date-range/m-p/692988#M613</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Try the following formula:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;MAT cost:= calculate([&lt;SPAN&gt;Sum of material consumption&lt;/SPAN&gt;],datesinperiod(calendar[date],lastdate(&lt;FONT&gt;calendar[date]),&lt;/FONT&gt;-1,year))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Good luck,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;José Luis&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 15:53:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-on-a-dynamic-date-range/m-p/692988#M613</guid>
      <dc:creator>joseluis1969</dc:creator>
      <dc:date>2019-05-16T15:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum on a dynamic date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-on-a-dynamic-date-range/m-p/693539#M619</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;For this table in Power BI which consists of the fields (fields of the different tables), how to invert the rows in columns and the columns in rows?&lt;BR /&gt;You will find attached a screenshot of my table on Power BI.&lt;/P&gt;&lt;P&gt;I thank you in advance.&lt;BR /&gt;Cordially.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 08:06:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-on-a-dynamic-date-range/m-p/693539#M619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-17T08:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum on a dynamic date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-on-a-dynamic-date-range/m-p/3139571#M112040</link>
      <description>&lt;P&gt;It worked perfectly for me. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 18:22:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-on-a-dynamic-date-range/m-p/3139571#M112040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-17T18:22:27Z</dc:date>
    </item>
  </channel>
</rss>

