<?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 Dax - Period To Date This Week Vs. Last Week in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Period-To-Date-This-Week-Vs-Last-Week/m-p/1443158#M27021</link>
    <description>&lt;P&gt;I am trying to have a line graph that displays last week's revenue and this week's revenue period to date.&lt;BR /&gt;&lt;BR /&gt;I have figured out this week with this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;VAR _PeriodToDate =
CALCULATE(
    SUM(RevenueChannel[BookedRevenue]),
    'Date'[Date] &amp;lt;= _MaxDate,
        FILTER(ALL('Date'),
        'Date'[Date] &amp;lt; TODAY() &amp;amp;&amp;amp;
        'Date'[Date] &amp;gt;= TODAY() - 7
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But cannot seem to figure out how to do the last week. I know I can easily just do this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;VAR _PeriodToDateTest =
CALCULATE(
    SUM(RevenueChannel[BookedRevenue]),
    'Date'[Date] &amp;lt;= _MaxDate,
        FILTER(ALL('Date'),
        'Date'[Date] &amp;lt; TODAY() - 7 &amp;amp;&amp;amp;
        'Date'[Date] &amp;gt;= TODAY() - 14
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then they do not line up on the line graph:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I would accomplish this?&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 23:00:25 GMT</pubDate>
    <dc:creator>zfemmer</dc:creator>
    <dc:date>2020-10-19T23:00:25Z</dc:date>
    <item>
      <title>Dax - Period To Date This Week Vs. Last Week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Period-To-Date-This-Week-Vs-Last-Week/m-p/1443158#M27021</link>
      <description>&lt;P&gt;I am trying to have a line graph that displays last week's revenue and this week's revenue period to date.&lt;BR /&gt;&lt;BR /&gt;I have figured out this week with this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;VAR _PeriodToDate =
CALCULATE(
    SUM(RevenueChannel[BookedRevenue]),
    'Date'[Date] &amp;lt;= _MaxDate,
        FILTER(ALL('Date'),
        'Date'[Date] &amp;lt; TODAY() &amp;amp;&amp;amp;
        'Date'[Date] &amp;gt;= TODAY() - 7
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But cannot seem to figure out how to do the last week. I know I can easily just do this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;VAR _PeriodToDateTest =
CALCULATE(
    SUM(RevenueChannel[BookedRevenue]),
    'Date'[Date] &amp;lt;= _MaxDate,
        FILTER(ALL('Date'),
        'Date'[Date] &amp;lt; TODAY() - 7 &amp;amp;&amp;amp;
        'Date'[Date] &amp;gt;= TODAY() - 14
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then they do not line up on the line graph:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I would accomplish this?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 23:00:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Period-To-Date-This-Week-Vs-Last-Week/m-p/1443158#M27021</guid>
      <dc:creator>zfemmer</dc:creator>
      <dc:date>2020-10-19T23:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dax - Period To Date This Week Vs. Last Week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Period-To-Date-This-Week-Vs-Last-Week/m-p/1443175#M27022</link>
      <description>&lt;P&gt;I was way overthinking it...&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;CALCULATE(
    SUM(RevenueChannel[BookedRevenue]),
    'Date'[Date] &amp;lt;= _MaxDate - 7,
        FILTER(ALL('Date'),
        'Date'[Date] &amp;lt; TODAY() - 7 &amp;amp;&amp;amp;
        'Date'[Date] &amp;gt;= TODAY() - 14
        )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Oct 2020 23:12:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Period-To-Date-This-Week-Vs-Last-Week/m-p/1443175#M27022</guid>
      <dc:creator>zfemmer</dc:creator>
      <dc:date>2020-10-19T23:12:08Z</dc:date>
    </item>
  </channel>
</rss>

