<?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 Measure for sum of last month revenue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-sum-of-last-month-revenue/m-p/1490705#M28649</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi,&lt;BR /&gt;I have a measure that calculates full monthly revenue based on specified dates, for example October:&lt;BR /&gt;Rev2020-10-Qta&amp;amp;NRMUsg = CALCULATE(SUM(Transactions[DailyUsage$NRMusg])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;, DATESBETWEEN(Dates[Date], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATE(2020,10,1), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATE(2020,10,31) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;))&lt;BR /&gt;This measure is used on some Power BI pages that don't have any slicers or applied time periods.&lt;BR /&gt;&lt;BR /&gt;How can I build a dynamic measure that would return the same value, without having to "hard code" the dates? I've tried PreviousMonth and other functions, but could not set it up properly to work with those requirements:&lt;BR /&gt;- Previous Month should be calculated based on the current month, as of today&lt;BR /&gt;- It will not get the value from a slicer or a filter on the page&lt;BR /&gt;- Must be the entire full last month&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;Erik&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 12 Nov 2020 15:53:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-12T15:53:56Z</dc:date>
    <item>
      <title>Measure for sum of last month revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-sum-of-last-month-revenue/m-p/1490705#M28649</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi,&lt;BR /&gt;I have a measure that calculates full monthly revenue based on specified dates, for example October:&lt;BR /&gt;Rev2020-10-Qta&amp;amp;NRMUsg = CALCULATE(SUM(Transactions[DailyUsage$NRMusg])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;, DATESBETWEEN(Dates[Date], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATE(2020,10,1), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATE(2020,10,31) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;))&lt;BR /&gt;This measure is used on some Power BI pages that don't have any slicers or applied time periods.&lt;BR /&gt;&lt;BR /&gt;How can I build a dynamic measure that would return the same value, without having to "hard code" the dates? I've tried PreviousMonth and other functions, but could not set it up properly to work with those requirements:&lt;BR /&gt;- Previous Month should be calculated based on the current month, as of today&lt;BR /&gt;- It will not get the value from a slicer or a filter on the page&lt;BR /&gt;- Must be the entire full last month&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;Erik&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Nov 2020 15:53:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-sum-of-last-month-revenue/m-p/1490705#M28649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-12T15:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for sum of last month revenue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-sum-of-last-month-revenue/m-p/1491329#M28669</link>
      <description>&lt;P&gt;Found it via another post on this forum. Here's the equivalent formula:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RevLastLmonthQta&amp;amp;NRMUsg = CALCULATE(SUM(Transactions[DailyUsage$NRMusg]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATESBETWEEN(Dates[Date],DATE(YEAR(TODAY()),MONTH(TODAY())-1,01),DATE(YEAR(TODAY()),MONTH(TODAY()),01)-1))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Nov 2020 23:25:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-sum-of-last-month-revenue/m-p/1491329#M28669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-12T23:25:56Z</dc:date>
    </item>
  </channel>
</rss>

