<?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: Dynamic Custom Fiscal Year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3985105#M154498</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="710794" data-lia-user-login="Billgates" class="lia-mention lia-mention-user"&gt;Billgates&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on my testing, please &lt;SPAN&gt;try the following methods again:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the simple tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the relationship between the two tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.Create the new measure to calculate the last fiscal year counts.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CountLastFiscalYear = 
VAR CurrentFiscalYear = MAX('Table'[Fiscal year]) - 1
RETURN
CALCULATE(
    COUNTROWS('Fact Table'),
    FILTER(
        'Table',
        'Table'[Fiscal year] = CurrentFiscalYear
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;4.The result is shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 06:12:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-11T06:12:10Z</dc:date>
    <item>
      <title>Dynamic Custom Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3984268#M154472</link>
      <description>&lt;P&gt;Fact Table - Column 1, Date of Occurence&lt;/P&gt;&lt;P&gt;Date Dimension Table - Date, Calendar Year, Fiscal Year, Fiscal Period, Fiscal Week&lt;/P&gt;&lt;P&gt;I've to write a DAX measure that counts Column 1 where the Date of Occurence is in the last Fiscal Year.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 18:18:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3984268#M154472</guid>
      <dc:creator>Billgates</dc:creator>
      <dc:date>2024-06-10T18:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Custom Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3984279#M154474</link>
      <description>&lt;P&gt;I find using the below linked table best for Fiscal Year reporting. The table has a Fiscal Year offset and various Fiscal Year fields when you input the month number of your first fiscal month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forum.enterprisedna.co/t/extended-date-table-power-query-m-function/6390" target="_blank"&gt;https://forum.enterprisedna.co/t/extended-date-table-power-query-m-function/6390&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 18:33:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3984279#M154474</guid>
      <dc:creator>ArtisanAmbrosia</dc:creator>
      <dc:date>2024-06-10T18:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Custom Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3984302#M154477</link>
      <description>&lt;P&gt;Thank you, I have my date table I just want a DAX measure to meet my requirements&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 18:50:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3984302#M154477</guid>
      <dc:creator>Billgates</dc:creator>
      <dc:date>2024-06-10T18:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Custom Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3984337#M154479</link>
      <description>&lt;P&gt;Well, you may need to improve your date table...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a relationship between 'Fact Table'[Date of Occurence] and 'Date'[Date]&amp;nbsp;&lt;BR /&gt;You could hardcode the measure, which isn't ideal for when next FY comes:&lt;BR /&gt;Last FY Count = CALCULATE(COUNT('Fact'[Column 1]), 'Date Table'[Fiscal Year] = "2023")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could use variables for something like:&lt;BR /&gt;Last FY Count = VAR FYStart = [Date] &amp;gt;= "5/1/2023"&lt;/P&gt;&lt;P&gt;VAR FYEnd = [Date] &amp;lt;= "4/30/2024"&lt;/P&gt;&lt;P&gt;VAR CountFact = Count('Fact'[Column 1]&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;CALCULATE(CountFact), [Date of Occurence] &amp;gt;= FYStart &amp;amp;&amp;amp; [Date of Occurence] &amp;lt;= FYEnd)&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 19:19:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3984337#M154479</guid>
      <dc:creator>ArtisanAmbrosia</dc:creator>
      <dc:date>2024-06-10T19:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Custom Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3985105#M154498</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="710794" data-lia-user-login="Billgates" class="lia-mention lia-mention-user"&gt;Billgates&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on my testing, please &lt;SPAN&gt;try the following methods again:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the simple tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the relationship between the two tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.Create the new measure to calculate the last fiscal year counts.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CountLastFiscalYear = 
VAR CurrentFiscalYear = MAX('Table'[Fiscal year]) - 1
RETURN
CALCULATE(
    COUNTROWS('Fact Table'),
    FILTER(
        'Table',
        'Table'[Fiscal year] = CurrentFiscalYear
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;4.The result is shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 06:12:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Custom-Fiscal-Year/m-p/3985105#M154498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-11T06:12:10Z</dc:date>
    </item>
  </channel>
</rss>

