<?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: Same Period one year ago in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Period-one-year-ago/m-p/3580729#M138110</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250165" data-lia-user-login="Jessica_Ballard" class="lia-mention lia-mention-user"&gt;Jessica_Ballard&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a Measure for the Current Period&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales_Current_Period = 
SUM('YourDataTable'[Sales])
&lt;/LI-CODE&gt;
&lt;P&gt;2.&amp;nbsp;Create a Measure for the Same Period Last Year&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales_Same_Period_Last_Year = 
CALCULATE(
    SUM('YourDataTable'[Sales]),
    DATEADD('Date'[Date], -1, YEAR),
    FILTER(
        'Date',
        'Date'[Date] &amp;gt;= DATEADD(MIN('Date'[Date]), -1, YEAR) &amp;amp;&amp;amp;
        'Date'[Date] &amp;lt;= DATEADD(MAX('Date'[Date]), -1, YEAR)
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Should you require any further assistance, please do not hesitate to reach out to me.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2023 22:55:36 GMT</pubDate>
    <dc:creator>Sahir_Maharaj</dc:creator>
    <dc:date>2023-12-12T22:55:36Z</dc:date>
    <item>
      <title>Same Period one year ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Period-one-year-ago/m-p/3580585#M138103</link>
      <description>&lt;P&gt;I am trying to display data from the same date range a year ago. I have tried sameperiodlast year and parallelperiod but I am getting tripped up when the date range spans accross two years for example the user selects March 1, 2022 - March 1, 2023. I want to simultaneously display data from that date range and March 1, 2021 - March 1, 2022. However, crossing years seems to be confusing my measures. Any suggestions here?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 20:52:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Period-one-year-ago/m-p/3580585#M138103</guid>
      <dc:creator>Jessica_Ballard</dc:creator>
      <dc:date>2023-12-12T20:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Same Period one year ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Period-one-year-ago/m-p/3580729#M138110</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250165" data-lia-user-login="Jessica_Ballard" class="lia-mention lia-mention-user"&gt;Jessica_Ballard&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a Measure for the Current Period&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales_Current_Period = 
SUM('YourDataTable'[Sales])
&lt;/LI-CODE&gt;
&lt;P&gt;2.&amp;nbsp;Create a Measure for the Same Period Last Year&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales_Same_Period_Last_Year = 
CALCULATE(
    SUM('YourDataTable'[Sales]),
    DATEADD('Date'[Date], -1, YEAR),
    FILTER(
        'Date',
        'Date'[Date] &amp;gt;= DATEADD(MIN('Date'[Date]), -1, YEAR) &amp;amp;&amp;amp;
        'Date'[Date] &amp;lt;= DATEADD(MAX('Date'[Date]), -1, YEAR)
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Should you require any further assistance, please do not hesitate to reach out to me.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 22:55:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Period-one-year-ago/m-p/3580729#M138110</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-12-12T22:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Same Period one year ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Period-one-year-ago/m-p/3582438#M138201</link>
      <description>&lt;P&gt;Thanks so much! I am getting an error "the first arguement to 'DATEADD' must specify a column." but i am specifying columns...ever seen this?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 17:00:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Period-one-year-ago/m-p/3582438#M138201</guid>
      <dc:creator>Jessica_Ballard</dc:creator>
      <dc:date>2023-12-13T17:00:52Z</dc:date>
    </item>
  </channel>
</rss>

