<?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: DAX - Date Table - Periods/Months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Table-Periods-Months/m-p/3364241#M126495</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try these sources:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/sorting-months-in-fiscal-calendars/" target="_blank"&gt;https://www.sqlbi.com/articles/sorting-months-in-fiscal-calendars/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.daxpatterns.com/custom-time-related-calculations/" target="_blank"&gt;https://www.daxpatterns.com/custom-time-related-calculations/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 19:26:25 GMT</pubDate>
    <dc:creator>ERD</dc:creator>
    <dc:date>2023-08-03T19:26:25Z</dc:date>
    <item>
      <title>DAX - Date Table - Periods/Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Table-Periods-Months/m-p/3363913#M126476</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my model with multiple tables (sales, orders, finance), I have a calendar table with date/week/month/quarter/year and financial week/period/financial year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Week and financial week, month and period, year and financial year don't match.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to work with the financial week/period/financial year and compare this financial year to previous ones. Could you please suggest the best way to do it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Table-Periods-Months/m-p/3363913#M126476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T15:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Date Table - Periods/Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Table-Periods-Months/m-p/3364241#M126495</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try these sources:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/sorting-months-in-fiscal-calendars/" target="_blank"&gt;https://www.sqlbi.com/articles/sorting-months-in-fiscal-calendars/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.daxpatterns.com/custom-time-related-calculations/" target="_blank"&gt;https://www.daxpatterns.com/custom-time-related-calculations/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:26:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Table-Periods-Months/m-p/3364241#M126495</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-08-03T19:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Date Table - Periods/Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Table-Periods-Months/m-p/3369387#M126765</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Financial Week =
VAR FirstDayOfYear =
    DATE ( YEAR ( [Date] ), 1, 1 )
VAR FiscalYearStart =
    IF (
        MONTH ( FirstDayOfYear ) &amp;gt;= 4,
        FirstDayOfYear,
        FirstDayOfYear - DAY ( FirstDayOfYear ) + 1 + 92
    )
VAR FiscalWeekStart =
    FiscalYearStart
        + ( WEEKDAY ( FiscalYearStart ) - 1 ) * -1
RETURN
    CEILING ( DIVIDE ( [Date] - FiscalWeekStart, 7 ), 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales This Fiscal Year = CALCULATE(SUM(Sales[Amount]), FILTER(Calendar, Calendar[Financial Year] = MAX(Calendar[Financial Year])))
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Sales Last Fiscal Year = CALCULATE(SUM(Sales[Amount]), FILTER(Calendar, Calendar[Financial Year] = MAX(Calendar[Financial Year]) - 1))
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Fiscal Year Sales Growth = DIVIDE([Sales This Fiscal Year] - [Sales Last Fiscal Year], [Sales Last Fiscal Year])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Rongtie&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 02:37:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Date-Table-Periods-Months/m-p/3369387#M126765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-08T02:37:46Z</dc:date>
    </item>
  </channel>
</rss>

