<?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: LY Fiscal Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880792#M185971</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="847977" data-lia-user-login="MohdZaid_" class="lia-mention lia-mention-user"&gt;MohdZaid_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try what you have suggested and get back to you. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 09:35:01 GMT</pubDate>
    <dc:creator>Brendy_P</dc:creator>
    <dc:date>2025-11-20T09:35:01Z</dc:date>
    <item>
      <title>LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879750#M185928</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Hopefully I can explain my dilemma adequately for you to help me. Thank you in advance.&lt;/P&gt;&lt;P&gt;I am looking to calculate last years total from my Calendar table which is based on my company's fiscal year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the Dax calculation using DateAdd -1 year or Sameperiodlastyear doesn't give me the correct total.&amp;nbsp;&lt;/P&gt;&lt;P&gt;example - Calculate([Total],SAMEPERIODLASTYEAR(Calendar[Date])&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The third Figure below is a snippet from my Visualisation. The filter Context comes from the Slicer&lt;STRONG&gt; (Period Yrs)&lt;/STRONG&gt;. And also from the Table&lt;STRONG&gt; (Company Weeks)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to create a measure that takes the period yr 25/26, go back to 24/25 and start calculating the total from company weeks 1.&lt;/P&gt;&lt;P&gt;Instead what I am currently getting is the total based on the dates starting on the 31/3/24 to 6/4/24. Were it should be 1/4/24 to 7/4/24 (see second table)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need me to explain anything else please let me know.&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;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 12:00:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879750#M185928</guid>
      <dc:creator>Brendy_P</dc:creator>
      <dc:date>2025-11-19T12:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879774#M185930</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170730" data-lia-user-login="Brendy_P" class="lia-mention lia-mention-user"&gt;Brendy_P&lt;/a&gt;&amp;nbsp;, We got a calendar option in Sep 2025&amp;nbsp;&lt;BR /&gt;&lt;A href="https://powerbi.microsoft.com/en-in/blog/power-bi-september-2025-feature-summary/#post-30998-_Toc208591563" target="_blank"&gt;https://powerbi.microsoft.com/en-in/blog/power-bi-september-2025-feature-summary/#post-30998-_Toc208591563&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 12:13:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879774#M185930</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2025-11-19T12:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879809#M185935</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170730" data-lia-user-login="Brendy_P" class="lia-mention lia-mention-user"&gt;Brendy_P&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The issue is not with SAMEPERIODLASTYEAR it's that your fiscal calendar does not align with the true date shift that DAX performs. DAX always offsets by 365 days, not by your Company Week 1 --&amp;gt; Week 1 fiscal structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the correct result, you must shift fiscal periods, not dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fix is to use a Fiscal Year + Fiscal Week mapping and manually jump to the pervious fiscal year while forcing Week = 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measure (Fiscal LY Todal)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LY Total =&lt;BR /&gt;VAR CurrFY =&lt;BR /&gt;SELECTEDVALUE ( Calendar[FiscalYear] )&lt;BR /&gt;VAR PrevFY =&lt;BR /&gt;CurrFY - 1&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Total], -- your base measure&lt;BR /&gt;Calendar[FiscalYear] = PrevFY,&lt;BR /&gt;Calendar[FiscalWeek] &amp;gt;= 1 -- ensures you start at Company Week 1&lt;BR /&gt;)&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;UL&gt;&lt;LI&gt;It ignores the natural calendar date offset.&lt;/LI&gt;&lt;LI&gt;It explicity tells Power BI : "Go to Fiscal Year (FY - 1) and start calculating from Week 1"&lt;/LI&gt;&lt;LI&gt;This aligns perfectly with your compnay's 1/4-31/3 fiscal structure.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into the exact same mismatch before DAX was technically "correct" but not fiscally correct. Shifting by fiscal attributes instead of dates is the key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it solved your issue, feel free to mark it as the solution so others can benefit too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for being part of the community.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 12:33:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879809#M185935</guid>
      <dc:creator>MohdZaid_</dc:creator>
      <dc:date>2025-11-19T12:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879920#M185940</link>
      <description>&lt;P&gt;Hi&amp;nbsp; amitchandak&lt;/P&gt;&lt;P&gt;I have looked at the blog and have already got the enhanced calendar option. I have followed the instructions but I can't seem to find the calendar created. I will need to do a bit more reding on it. Thank you for replying&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 14:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879920#M185940</guid>
      <dc:creator>Brendy_P</dc:creator>
      <dc:date>2025-11-19T14:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879936#M185941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="847977" data-lia-user-login="MohdZaid_" class="lia-mention lia-mention-user"&gt;MohdZaid_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the measure but I get an error. Because&amp;nbsp;&lt;SPAN&gt;SELECTEDVALUE ( Calendar[FiscalYear] ) is formatted as a text value in my calendar table, you can't minus 1 from it. i.e. 25-26. I feel that you are close to the solution or maybe it is something that I am doing wrong. Or need to adjust on my calendar table.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 14:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4879936#M185941</guid>
      <dc:creator>Brendy_P</dc:creator>
      <dc:date>2025-11-19T14:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880664#M185957</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170730" data-lia-user-login="Brendy_P" class="lia-mention lia-mention-user"&gt;Brendy_P&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you try TOTALYTD DAX Function for current year and previous year,it has one additional parameter to switch year end.&lt;/P&gt;&lt;P&gt;try measures below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total = SUM(TD[SalesAmount])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Current year = TOTALYTD(
[Total]
,'Calendar'[Date]
,"03/31" //here my year end is 31st march change it as per your company
) &lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Previous Year = TOTALYTD(
[Total],
SAMEPERIODLASTYEAR('Calendar'[Date])
,"03/31"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give kudos or mark it as solution once confirmed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 06:57:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880664#M185957</guid>
      <dc:creator>Praful_Potphode</dc:creator>
      <dc:date>2025-11-20T06:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880711#M185959</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170730" data-lia-user-login="Brendy_P" class="lia-mention lia-mention-user"&gt;Brendy_P&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fix is simple create a numeric Fiscal year first, then build the text labels from that.&lt;BR /&gt;&lt;BR /&gt;&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;&lt;BR /&gt;&lt;BR /&gt;DAX for Year from date and month -&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;&lt;P&gt;DAX for FY from Year&amp;nbsp; &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;&lt;BR /&gt;&lt;BR /&gt;A reliable pattern you can reuse anythime a client needs fiscal year slicing.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 07:38:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880711#M185959</guid>
      <dc:creator>MohdZaid_</dc:creator>
      <dc:date>2025-11-20T07:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880760#M185966</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1261729" data-lia-user-login="Praful_Potphode" class="lia-mention lia-mention-user"&gt;Praful_Potphode&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply, your solution is 99.9% correct.&lt;/P&gt;&lt;P&gt;The correct cumlative total should be 130.&lt;/P&gt;&lt;P&gt;As you can see from below, Company week's should include the date 7th April for last year.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 09:09:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880760#M185966</guid>
      <dc:creator>Brendy_P</dc:creator>
      <dc:date>2025-11-20T09:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880792#M185971</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="847977" data-lia-user-login="MohdZaid_" class="lia-mention lia-mention-user"&gt;MohdZaid_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try what you have suggested and get back to you. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 09:35:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880792#M185971</guid>
      <dc:creator>Brendy_P</dc:creator>
      <dc:date>2025-11-20T09:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880897#M185975</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170730" data-lia-user-login="Brendy_P" class="lia-mention lia-mention-user"&gt;Brendy_P&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my solution, "03/31"&amp;nbsp; is the year end which translates to 31st March&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you put youryear end in formula and try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give kudos or mark it as solution once confirmed&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Praful&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 10:41:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880897#M185975</guid>
      <dc:creator>Praful_Potphode</dc:creator>
      <dc:date>2025-11-20T10:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880942#M185977</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170730" data-lia-user-login="Brendy_P" class="lia-mention lia-mention-user"&gt;Brendy_P&lt;/a&gt;&amp;nbsp;, If you have Oct-2025 or onward&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;New Calendar&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Do these entries&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Formula&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YTD FY = CALCULATE([Net], DATESYTD('FY'))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Nov 2025 11:34:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4880942#M185977</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2025-11-20T11:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: LY Fiscal Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4885040#M186049</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1261729" data-lia-user-login="Praful_Potphode" class="lia-mention lia-mention-user"&gt;Praful_Potphode&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="847977" data-lia-user-login="MohdZaid_" class="lia-mention lia-mention-user"&gt;MohdZaid_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate and would like to thank you all for your help. I have since found out that my company uses a 4-4-5 week calendar. Having said that&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;suggestion probably answers my qustion. Thank you all&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 07:11:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Fiscal-Calculation/m-p/4885040#M186049</guid>
      <dc:creator>Brendy_P</dc:creator>
      <dc:date>2025-11-25T07:11:51Z</dc:date>
    </item>
  </channel>
</rss>

