<?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: Fiscal Calendar Date Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3419956#M129449</link>
    <description>&lt;P&gt;Hello! Could the DAX solution be used for a fiscal calendar of 01/01 - 12/31 that uses a 28 day month? December containing the extra weeks.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 15:18:34 GMT</pubDate>
    <dc:creator>akmillerlease</dc:creator>
    <dc:date>2023-09-07T15:18:34Z</dc:date>
    <item>
      <title>Fiscal Calendar Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3047961#M104856</link>
      <description>&lt;P&gt;Hi All!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the most efficient way to create a Fiscal Calendar Date Table (Fiscal Year starting in July).&amp;nbsp; I'm looking for the calendar to not have a specific beginning date (min) or ending date (max) date, but is coinciding with the dates that are uploaded in my fact table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christina&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 21:10:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3047961#M104856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-27T21:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Calendar Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3047983#M104857</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Well, that's a good question. I know that Enterprise DNA has a really good date table that Melissa de Korte put together:&amp;nbsp;&lt;A href="https://blog.enterprisedna.co/extended-date-table/" target="_blank"&gt;Extended Date Table Power Query M Function - Enterprise DNA&lt;/A&gt;.&amp;nbsp;&lt;A href="https://blog.enterprisedna.co/using-the-m-function-to-create-an-extended-power-bi-date-table/" target="_blank"&gt;Using The M Function To Create An Extended Power BI Date Table Code | Enterprise DNA&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also do it in DAX:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/DAX-Custom-445-Calendar/m-p/1388582#M627" target="_blank"&gt;DAX Custom 445 Calendar - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose the DAX approach would have the advantage of being able to specify MAX and MIN of the dates in your fact table although you might be able to do something similar in Power Query with a little work. Essentially, create queries for grabbing max and then min and use them as parameters in your Power Query M function more or less.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 21:34:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3047983#M104857</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-01-27T21:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Calendar Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3048043#M104863</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;- Thank you for the response, but I'm NOT looking to include a specific start and end date.&amp;nbsp; I did try to using the M function to create a Fiscal Year Date Calendar and although it's on the right track of what I'm looking for, It didn't provide me fiscal month numbers, fiscal weeks (just the week number), and if my FY starts in July and Ends in June, I am looking for the year to be formatted as: FY2223 (for example) not just the year it begins in.&amp;nbsp;&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>Fri, 27 Jan 2023 22:37:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3048043#M104863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-27T22:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Calendar Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3048112#M104865</link>
      <description>&lt;P&gt;Please try out this approach that dynamically gets the start and end dates dynamically from your fact table. The first is the M/Power Query version (note this may cause performance problems as it will effectively load your fact table a second time to get these dates). The 2nd is the DAX version of same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
FactDates = List.Buffer(List.Distinct(FactQuery[DateColumn])),
StartDate = List.Min(FactDates),
EndDate = List.Max (FactDates),
DateList = List.Dates(StartDate, Number.From(EndDate - StartDate)+1, #duration(1,0,0,0)),
InitialTable = Table.FromColumns({DateList}, {"Date"}),
    #"Changed Type" = Table.TransformColumnTypes(InitialTable,{{"Date", type date}}),
    AddFY = Table.AddColumn(#"Changed Type", "FY", each Date.Year(Date.AddMonths([Date], 6))),
    AddFQ = Table.AddColumn(AddFY, "FQ", each Date.QuarterOfYear(Date.AddMonths([Date], 6))),
    AddFM = Table.AddColumn(AddFQ, "FM", each Date.Month(Date.AddMonths([Date], 6))),
    #"Added Custom" = Table.AddColumn(AddFM, "FW", each let 
FYstart = #date([FY]-1, 7, 1),
result = Number.RoundUp((Duration.TotalDays([Date] - FYstart)+1)/7, 0)
in 
result),
    #"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"FY", Int64.Type}, {"FQ", Int64.Type}, {"FM", Int64.Type}, {"FW", Int64.Type}})
in
    #"Changed Type1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FiscalDates =
ADDCOLUMNS (
    CALENDAR ( MIN ( Sales[SaleDate] ), MAX ( Sales[SaleDate] ) ),
    "FY", YEAR ( EOMONTH ( [Date], 6 ) ),
    "FQ", QUARTER ( EOMONTH ( [Date], 6 ) ),
    "FM", MONTH ( EOMONTH ( [Date], 6 ) ),
    "FW",
        ROUNDUP (
            (
                INT ( [Date] - DATE ( YEAR ( EOMONTH ( [Date], 6 ) ) - 1, 7, 1 ) ) + 1
            ) / 7,
            0
        )
)&lt;/LI-CODE&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 00:22:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3048112#M104865</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2023-01-28T00:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Calendar Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3052887#M105214</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443516" data-lia-user-login="ppm1" class="lia-mention lia-mention-user"&gt;ppm1&lt;/a&gt;&amp;nbsp; - It worked!&amp;nbsp; Thank you!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 14:22:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3052887#M105214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-31T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Calendar Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3419956#M129449</link>
      <description>&lt;P&gt;Hello! Could the DAX solution be used for a fiscal calendar of 01/01 - 12/31 that uses a 28 day month? December containing the extra weeks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 15:18:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Calendar-Date-Table/m-p/3419956#M129449</guid>
      <dc:creator>akmillerlease</dc:creator>
      <dc:date>2023-09-07T15:18:34Z</dc:date>
    </item>
  </channel>
</rss>

