<?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: Prior Year Same Month - When dates do not fall into same period in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Same-Month-When-dates-do-not-fall-into-same-period/m-p/4195281#M166563</link>
    <description>&lt;P&gt;What is&amp;nbsp; our expected outcome?&amp;nbsp; Only consider FY24 Period 1 dates until 8/3/2023 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that 7/1/2023 and 7/1/2024 are not equivalent - they fall on different weekdays. So your comparison will be skewed from the very beginning.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Sep 2024 22:18:43 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-09-29T22:18:43Z</dc:date>
    <item>
      <title>Prior Year Same Month - When dates do not fall into same period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Same-Month-When-dates-do-not-fall-into-same-period/m-p/4195254#M166562</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone have ideas on how to solve the below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a Dates table where each date has a fiscal month and fiscal year. as per the screenshot below, date is joined to Fact_ table which has sales transactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to calculate sales for&amp;nbsp; same fiscal period but prior year sales number, however dates for Fiscal period 1 2025 has dates from 7/1/2024 to 8/3/2024 and Fiscal Period 1 2024 has dates 7/1/2023 to 8/5/2023, anyone know how i can calculate prior year f1 2024 sales, cannot use time intelligence dax functions as the dates falling into FY 1 2025 and FY 1 2024 are not the same .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Sun, 29 Sep 2024 20:51:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Same-Month-When-dates-do-not-fall-into-same-period/m-p/4195254#M166562</guid>
      <dc:creator>rohanjasp</dc:creator>
      <dc:date>2024-09-29T20:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year Same Month - When dates do not fall into same period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Same-Month-When-dates-do-not-fall-into-same-period/m-p/4195281#M166563</link>
      <description>&lt;P&gt;What is&amp;nbsp; our expected outcome?&amp;nbsp; Only consider FY24 Period 1 dates until 8/3/2023 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that 7/1/2023 and 7/1/2024 are not equivalent - they fall on different weekdays. So your comparison will be skewed from the very beginning.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2024 22:18:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Same-Month-When-dates-do-not-fall-into-same-period/m-p/4195281#M166563</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-29T22:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year Same Month - When dates do not fall into same period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Same-Month-When-dates-do-not-fall-into-same-period/m-p/4204923#M166763</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="815682" data-lia-user-login="rohanjasp" class="lia-mention lia-mention-user"&gt;rohanjasp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your screenshot, I think there is a date table with [Fiscal Year] and [FY Startno] to determine the year and month of the fiscal.&lt;/P&gt;
&lt;P&gt;I think you can use them in your calculation. You can try code as below to create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Previous Year =
CALCULATE (
    SUM ( 'TableName'[ColumnName] ),
    FILTER (
        ALLSELECTED ( 'DateTable' ),
        'DateTable'[Fiscal Year]
            = MAX ( 'DateTable'[Fiscal Year] ) - 1
            &amp;amp;&amp;amp; 'DateTable'[FY Startno]
                = EOMONTH ( MAX ( 'DateTable'[FY Startno] ), -13 ) + 1
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 04:11:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Same-Month-When-dates-do-not-fall-into-same-period/m-p/4204923#M166763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-01T04:11:40Z</dc:date>
    </item>
  </channel>
</rss>

