<?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: Custom Fiscal Calendar in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3761664#M123785</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609791" data-lia-user-login="eisbaer99" class="lia-mention lia-mention-user"&gt;eisbaer99&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure your custom fiscal calendar includes an ID column for months.&lt;/P&gt;
&lt;P&gt;Next you can follow the process described here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/feed/update/urn:li:activity:7014507876782120961/" target="_blank" rel="noopener"&gt;Turn any calendar ID column into an Offset column.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is helpful&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 20:31:37 GMT</pubDate>
    <dc:creator>m_dekorte</dc:creator>
    <dc:date>2024-03-13T20:31:37Z</dc:date>
    <item>
      <title>Custom Fiscal Calendar</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3760910#M123754</link>
      <description>&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Custom-fiscal-calendar-with-pre-defined-date-ranges/m-p/3760042#M1219760" target="_blank" rel="noopener"&gt;Custom-fiscal-calendar-with-pre-defined-date-ranges&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the above link which is absolutely perfect for my reporting but I need to know how to do the following please;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current Month Offset&lt;/P&gt;&lt;P&gt;Current Day Offset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both would need to feed from the 'End' date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run this from the resulting CustomFiscalDate then the offset runs from the last day of the month each time and not the actual period end date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 14:14:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3760910#M123754</guid>
      <dc:creator>eisbaer99</dc:creator>
      <dc:date>2024-03-13T14:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fiscal Calendar</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3761664#M123785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609791" data-lia-user-login="eisbaer99" class="lia-mention lia-mention-user"&gt;eisbaer99&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure your custom fiscal calendar includes an ID column for months.&lt;/P&gt;
&lt;P&gt;Next you can follow the process described here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/feed/update/urn:li:activity:7014507876782120961/" target="_blank" rel="noopener"&gt;Turn any calendar ID column into an Offset column.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is helpful&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 20:31:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3761664#M123785</guid>
      <dc:creator>m_dekorte</dc:creator>
      <dc:date>2024-03-13T20:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fiscal Calendar</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3771941#M124129</link>
      <description>&lt;P&gt;Thanks for this, I have followed a few of the subsequent links and pulled the Extended Date Table from Enterprise DNA.&lt;/P&gt;&lt;P&gt;I'm not sure I explained myself properly so apologies as this so far hasn't given me what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example, in the UK fiscal, 29/01/2024 is the start of P11 and 26/02/2024 is the start of P12, I need to base my period offsets on these dates so say 25/02/2024 (final day of P11) would show as -1 but 26/02/2024 would show as 0.&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>Mon, 18 Mar 2024 14:25:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3771941#M124129</guid>
      <dc:creator>eisbaer99</dc:creator>
      <dc:date>2024-03-18T14:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fiscal Calendar</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3771971#M124134</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609791" data-lia-user-login="eisbaer99" class="lia-mention lia-mention-user"&gt;eisbaer99&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh no, that is an ISO-8601 type calendar and does not meet your requirements at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The LinkedIn post demonstrates a method to transform any ID column into an Offset. By adding an Index column to your "Period table" &lt;EM&gt;&lt;STRONG&gt;before expanding&lt;/STRONG&gt;&lt;/EM&gt; all dates, you can create the offset as described.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that clarifies it. If you require further assistance with the implementation, you should provide a sample.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 14:42:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3771971#M124134</guid>
      <dc:creator>m_dekorte</dc:creator>
      <dc:date>2024-03-18T14:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fiscal Calendar</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3772040#M124139</link>
      <description>&lt;P&gt;Sadly I'm struggling to follow the guide but happy to attempt a youtube video if there is one?&lt;/P&gt;&lt;P&gt;Else my code is below, tried to upload a PBIX but it wouldn't let me (appreciate the help).&lt;BR /&gt;&lt;BR /&gt;let&lt;BR /&gt;Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("fZZRksQgCESvMjXfWxUlinqWqbn/NTYQbBLM7p8LvTTDC5afzzu/Ut5S2SjR/toTjuX44/39+bxJBfWMUsexHH+o4IgORBNtqZ3H+tqrCsor7YiKRQsVDmVGlNqWehCwGlv0aCenYNHEeEaPduYRFboYQ8BbzkEwxHhGj3YyBYucdBCqKNqPHVEiZ53EVNQtUVSQeM+w/Oj9PLqL4zhNSihB6jEFbIMvNxwNUZk2B4uiFs0tWqhQ1aL5z+hBwGpsUdGOYNHU2KIy1xQqdDGeUSo2+HLDUREVoBQHlZQo+SBUXO84GsK029zrHUdBGDiquHDEkXUUdpS5qGAyYVftNv3sRhNMQUo64/OIn2R0BAm7Y3uqVdXRUkQGI6pYm7GU/MN4cmzajKWERXqq1RWIpSgbm6ga0sxMyZrRk+PBTj4K8oHpf1AolrWdmaNkpBYZST8zB4okpiNSTI4qSR2+UWyumqjSSrEiBVRppTiQAqpYq6qjpYAqqlibsRRQRcemzVgKqGKtrlAsBVRRNaSZmQKp6Jj1988cSMVPIp+fccaXk+hRRvodWw4U9dPpkWJ1VLrO7Uaxu2qiqitFRgqo6kIR9+cFVaxV/RKtjiqq2G/S6qiiY/PrtDqqWKv7nVodVVQNv1irkzodXwJvIARA/ACPkQOgRUZ+v7LDY/FqER77CvLfK8i+gtHtsoLsK8h/ryD7CsZaF66X2zKqLivIvoLR8bKC7CsYa11WkH0Fo+qyguwryA6vI4TNa/9sXvPNW2SXzWsOrz1u3uU1KPfwnq/w5PFnKTwJ4219vgAthXchLfAOu5nC4zDWqtpMN8eO4wJvIIVnYnRs0sxM4a0Ya3V9GloKD8aoGoon+7zsWbncnzIwy+HluK8UZWJTNp+Pi+zcHcuBopru7+/3Fw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Period Start Date End Date Weeks in Period Days in Period" = _t]),&lt;BR /&gt;#"Removed blank rows" = Table.SelectRows(&lt;BR /&gt;Source,&lt;BR /&gt;each ([Period Start Date End Date Weeks in Period Days in Period] &amp;lt;&amp;gt; "")&lt;BR /&gt;),&lt;BR /&gt;#"Changed Type to Text" = Table.TransformColumnTypes(&lt;BR /&gt;#"Removed blank rows",&lt;BR /&gt;{{"Period Start Date End Date Weeks in Period Days in Period", type text}}&lt;BR /&gt;),&lt;BR /&gt;#"Split Column" = Table.SplitColumn(&lt;BR /&gt;#"Changed Type to Text",&lt;BR /&gt;"Period Start Date End Date Weeks in Period Days in Period",&lt;BR /&gt;Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv),&lt;BR /&gt;{&lt;BR /&gt;"Period Start Date End Date Weeks in Period Days in Period.1",&lt;BR /&gt;"Period Start Date End Date Weeks in Period Days in Period.2",&lt;BR /&gt;"Period Start Date End Date Weeks in Period Days in Period.3",&lt;BR /&gt;"Period Start Date End Date Weeks in Period Days in Period.4",&lt;BR /&gt;"Period Start Date End Date Weeks in Period Days in Period.5"&lt;BR /&gt;}&lt;BR /&gt;),&lt;BR /&gt;#"Changed Field Type" = Table.TransformColumnTypes(&lt;BR /&gt;#"Split Column",&lt;BR /&gt;{&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.1", Int64.Type},&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.2", type date},&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.3", type date},&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.4", Int64.Type},&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.5", Int64.Type}&lt;BR /&gt;}&lt;BR /&gt;),&lt;BR /&gt;#"Renamed Headers" = Table.RenameColumns(&lt;BR /&gt;#"Changed Field Type",&lt;BR /&gt;{&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.1", "Period"},&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.2", "Start Date"},&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.3", "End Date"},&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.4", "Weeks in Period"},&lt;BR /&gt;{"Period Start Date End Date Weeks in Period Days in Period.5", "Days in Period"}&lt;BR /&gt;}&lt;BR /&gt;)&lt;BR /&gt;in&lt;BR /&gt;#"Renamed Headers"&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 15:15:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3772040#M124139</guid>
      <dc:creator>eisbaer99</dc:creator>
      <dc:date>2024-03-18T15:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fiscal Calendar</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3772131#M124147</link>
      <description>&lt;P&gt;Thanks for sharing that&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609791" data-lia-user-login="eisbaer99" class="lia-mention lia-mention-user"&gt;eisbaer99&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give this a go&lt;/P&gt;
&lt;P&gt;UPDATE your table needed to be sorted first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;let
    TodaysRec = ExpandDate{ [Date = Date.From( DateTimeZone.FixedUtcNow()) ]}? ?? (error "Today's date is not included in the date table range"),
    Source = Table.FromRows(
        Json.Document(
            Binary.Decompress(
                Binary.FromText(
                    "fZZRksQgCESvMjXfWxUlinqWqbn/NTYQbBLM7p8LvTTDC5afzzu/Ut5S2SjR/toTjuX44/39+bxJBfWMUsexHH+o4IgORBNtqZ3H+tqrCsor7YiKRQsVDmVGlNqWehCwGlv0aCenYNHEeEaPduYRFboYQ8BbzkEwxHhGj3YyBYucdBCqKNqPHVEiZ53EVNQtUVSQeM+w/Oj9PLqL4zhNSihB6jEFbIMvNxwNUZk2B4uiFs0tWqhQ1aL5z+hBwGpsUdGOYNHU2KIy1xQqdDGeUSo2+HLDUREVoBQHlZQo+SBUXO84GsK029zrHUdBGDiquHDEkXUUdpS5qGAyYVftNv3sRhNMQUo64/OIn2R0BAm7Y3uqVdXRUkQGI6pYm7GU/MN4cmzajKWERXqq1RWIpSgbm6ga0sxMyZrRk+PBTj4K8oHpf1AolrWdmaNkpBYZST8zB4okpiNSTI4qSR2+UWyumqjSSrEiBVRppTiQAqpYq6qjpYAqqlibsRRQRcemzVgKqGKtrlAsBVRRNaSZmQKp6Jj1988cSMVPIp+fccaXk+hRRvodWw4U9dPpkWJ1VLrO7Uaxu2qiqitFRgqo6kIR9+cFVaxV/RKtjiqq2G/S6qiiY/PrtDqqWKv7nVodVVQNv1irkzodXwJvIARA/ACPkQOgRUZ+v7LDY/FqER77CvLfK8i+gtHtsoLsK8h/ryD7CsZaF66X2zKqLivIvoLR8bKC7CsYa11WkH0Fo+qyguwryA6vI4TNa/9sXvPNW2SXzWsOrz1u3uU1KPfwnq/w5PFnKTwJ4219vgAthXchLfAOu5nC4zDWqtpMN8eO4wJvIIVnYnRs0sxM4a0Ya3V9GloKD8aoGoon+7zsWbncnzIwy+HluK8UZWJTNp+Pi+zcHcuBopru7+/3Fw==", 
                    BinaryEncoding.Base64
                ), 
                Compression.Deflate
            )
        ), 
        let
            _t = ((type nullable text) meta [Serialized.Text = true])
        in
            type table [#"Period Start Date End Date Weeks in Period Days in Period" = _t]
    ), 
    #"Removed blank rows" = Table.SelectRows(
        Source, 
        each ([Period Start Date End Date Weeks in Period Days in Period] &amp;lt;&amp;gt; "")
    ), 
    #"Changed Type to Text" = Table.TransformColumnTypes(
        #"Removed blank rows", 
        {{"Period Start Date End Date Weeks in Period Days in Period", type text}}
    ), 
    #"Split Column" = Table.SplitColumn(
        #"Changed Type to Text", 
        "Period Start Date End Date Weeks in Period Days in Period", 
        Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), 
        {
            "Period Start Date End Date Weeks in Period Days in Period.1", 
            "Period Start Date End Date Weeks in Period Days in Period.2", 
            "Period Start Date End Date Weeks in Period Days in Period.3", 
            "Period Start Date End Date Weeks in Period Days in Period.4", 
            "Period Start Date End Date Weeks in Period Days in Period.5"
        }
    ), 
    #"Changed Field Type" = Table.TransformColumnTypes(
        #"Split Column", 
        {
            {"Period Start Date End Date Weeks in Period Days in Period.1", Int64.Type}, 
            {"Period Start Date End Date Weeks in Period Days in Period.2", type date}, 
            {"Period Start Date End Date Weeks in Period Days in Period.3", type date}, 
            {"Period Start Date End Date Weeks in Period Days in Period.4", Int64.Type}, 
            {"Period Start Date End Date Weeks in Period Days in Period.5", Int64.Type}
        }
    ),
    SortRows = Table.Buffer( Table.Sort(#"Changed Field Type",{{"Period Start Date End Date Weeks in Period Days in Period.2", Order.Ascending}})), 
    #"Renamed Headers" = Table.RenameColumns(
        SortRows, 
        {
            {"Period Start Date End Date Weeks in Period Days in Period.1", "Period"}, 
            {"Period Start Date End Date Weeks in Period Days in Period.2", "Start Date"}, 
            {"Period Start Date End Date Weeks in Period Days in Period.3", "End Date"}, 
            {"Period Start Date End Date Weeks in Period Days in Period.4", "Weeks in Period"}, 
            {"Period Start Date End Date Weeks in Period Days in Period.5", "Days in Period"}
        }
    ), 
    AddPeriodID = Table.AddIndexColumn(#"Renamed Headers", "Period ID", 1, 1, Int64.Type), 
    AddListDates = Table.AddColumn(
        AddPeriodID, 
        "Date", 
        each List.Dates([Start Date], [Days in Period], Duration.From(1)), 
        type {date}
    ), 
    ExpandDate = Table.ExpandListColumn(AddListDates, "Date"),
    AddPeriodOffset = Table.AddColumn(ExpandDate, "Period Offset", each [Period ID] - TodaysRec[Period ID], Int64.Type)
in
    AddPeriodOffset&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is helpful&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 16:19:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3772131#M124147</guid>
      <dc:creator>m_dekorte</dc:creator>
      <dc:date>2024-03-18T16:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fiscal Calendar</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3774650#M124361</link>
      <description>&lt;P&gt;That is absolutely perfect, thank you ever so much for your help and patience.&lt;/P&gt;&lt;P&gt;I'll compare to my original code and see what was changed, hopefully then I can understand it next time.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 09:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-Fiscal-Calendar/m-p/3774650#M124361</guid>
      <dc:creator>eisbaer99</dc:creator>
      <dc:date>2024-03-19T09:53:02Z</dc:date>
    </item>
  </channel>
</rss>

