<?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: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4873695#M185773</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1408039" data-lia-user-login="bpratyusha" class="lia-mention lia-mention-user"&gt;bpratyusha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Let me clarify this issue for you...t&lt;SPAN&gt;his issue occurs because &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;SAMEPERIODLASTYEAR&lt;/FONT&gt;&lt;/STRONG&gt; uses a standard &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;365 day&lt;/STRONG&gt; &lt;/FONT&gt;calendar while your fiscal calendar has &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;364-368&lt;/STRONG&gt;&lt;/FONT&gt; days and sometimes &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;53 weeks&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is some &lt;FONT size="4" color="#99CC00"&gt;&lt;STRONG&gt;Approaches&lt;/STRONG&gt; &lt;/FONT&gt;to solve it you can try:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="4"&gt;Use Custom &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt; &lt;/FONT&gt;with &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;FILTER&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Replace your &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;LY&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;sales &lt;/STRONG&gt;measure with this pattern:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;LY Sales Corrected = 
VAR CurrentFiscalYear = SELECTEDVALUE('Date(454)'[fiscal_year])
VAR CurrentFiscalDay = SELECTEDVALUE('Date(454)'[fiscal_day_in_year])
VAR PreviousFiscalYear = CurrentFiscalYear - 1
RETURN
CALCULATE(
    SUM('fact'[sales]),
    FILTER(
        ALL('Date(454)'),
        'Date(454)'[fiscal_year] = PreviousFiscalYear &amp;amp;&amp;amp;
        'Date(454)'[fiscal_day_in_year] = CurrentFiscalDay
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="4"&gt;Handle Week 53 &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Specifically&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;LY Sales Week53 Fixed = 
VAR CurrentDate = MAX('Date(454)'[calendar_date])
VAR CurrentFiscalYear = MAX('Date(454)'[fiscal_year])
VAR CurrentFiscalWeek = MAX('Date(454)'[fiscal_week_in_year])
VAR LYDate = SAMEPERIODLASTYEAR('Date(454)'[calendar_date])

RETURN
IF(
    CurrentFiscalWeek = 53 &amp;amp;&amp;amp;
    NOT EXISTS(
        FILTER(
            ALL('Date(454)'),
            'Date(454)'[fiscal_year] = CurrentFiscalYear - 1 &amp;amp;&amp;amp;
            'Date(454)'[fiscal_week_in_year] = 53
        )
    ),
    BLANK(),
    CALCULATE(SUM('fact'[sales]), LYDate)
)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="4" color="#000000"&gt;Date &lt;FONT color="#99CC00"&gt;Table Enhancement&lt;/FONT&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT color="#000000"&gt;Add a column to your date table to identify valid same-period-last-year dates:&lt;/FONT&gt;&lt;/H3&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;// Add this as a calculated column to DimDate
Valid SPY Date = 
VAR CurrentFiscalYear = [fiscal_year]
VAR CurrentFiscalDay = [fiscal_day_in_year]
RETURN
CALCULATE(
    COUNTROWS('Date(454)'),
    FILTER(
        ALL('Date(454)'),
        'Date(454)'[fiscal_year] = CurrentFiscalYear - 1 &amp;amp;&amp;amp;
        'Date(454)'[fiscal_day_in_year] = CurrentFiscalDay
    )
) &amp;gt; 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest starting with &lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;First Solution&lt;/FONT&gt;&lt;/STRONG&gt; as it's the most reliable for custom fiscal calendars. It directly matches fiscal days between years rather than relying on calendar date offsets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;if this post helps, then I would appreciate a thumbs up&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 13 Nov 2025 00:29:49 GMT</pubDate>
    <dc:creator>Ahmed-Elfeel</dc:creator>
    <dc:date>2025-11-13T00:29:49Z</dc:date>
    <item>
      <title>Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4873657#M185771</link>
      <description>&lt;P&gt;We are testing the new &lt;STRONG&gt;Enhanced DAX Time Intelligence (Preview)&lt;/STRONG&gt; functionality in Microsoft Power BI Desktop&amp;nbsp;which allows defining custom calendars (e.g., fiscal years, 4-5-4 retail calendars) directly in the data model.&lt;BR /&gt;&lt;BR /&gt;Steps :&amp;nbsp;&lt;BR /&gt;1. Customized the calendar like below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;TY Sales =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'fact'&lt;/SPAN&gt;&lt;SPAN&gt;[sales]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;3.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LY sales =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'fact'&lt;/SPAN&gt;&lt;SPAN&gt;[sales]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;SAMEPERIODLASTYEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date(454)'&lt;/SPAN&gt;&lt;SPAN&gt;) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It should return null/ blank values for week 53 dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate your help in resolving this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 23:22:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4873657#M185771</guid>
      <dc:creator>bpratyusha</dc:creator>
      <dc:date>2025-11-12T23:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4873695#M185773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1408039" data-lia-user-login="bpratyusha" class="lia-mention lia-mention-user"&gt;bpratyusha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Let me clarify this issue for you...t&lt;SPAN&gt;his issue occurs because &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;SAMEPERIODLASTYEAR&lt;/FONT&gt;&lt;/STRONG&gt; uses a standard &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;365 day&lt;/STRONG&gt; &lt;/FONT&gt;calendar while your fiscal calendar has &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;364-368&lt;/STRONG&gt;&lt;/FONT&gt; days and sometimes &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;53 weeks&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is some &lt;FONT size="4" color="#99CC00"&gt;&lt;STRONG&gt;Approaches&lt;/STRONG&gt; &lt;/FONT&gt;to solve it you can try:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="4"&gt;Use Custom &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt; &lt;/FONT&gt;with &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;FILTER&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Replace your &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;LY&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;sales &lt;/STRONG&gt;measure with this pattern:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;LY Sales Corrected = 
VAR CurrentFiscalYear = SELECTEDVALUE('Date(454)'[fiscal_year])
VAR CurrentFiscalDay = SELECTEDVALUE('Date(454)'[fiscal_day_in_year])
VAR PreviousFiscalYear = CurrentFiscalYear - 1
RETURN
CALCULATE(
    SUM('fact'[sales]),
    FILTER(
        ALL('Date(454)'),
        'Date(454)'[fiscal_year] = PreviousFiscalYear &amp;amp;&amp;amp;
        'Date(454)'[fiscal_day_in_year] = CurrentFiscalDay
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="4"&gt;Handle Week 53 &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Specifically&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;LY Sales Week53 Fixed = 
VAR CurrentDate = MAX('Date(454)'[calendar_date])
VAR CurrentFiscalYear = MAX('Date(454)'[fiscal_year])
VAR CurrentFiscalWeek = MAX('Date(454)'[fiscal_week_in_year])
VAR LYDate = SAMEPERIODLASTYEAR('Date(454)'[calendar_date])

RETURN
IF(
    CurrentFiscalWeek = 53 &amp;amp;&amp;amp;
    NOT EXISTS(
        FILTER(
            ALL('Date(454)'),
            'Date(454)'[fiscal_year] = CurrentFiscalYear - 1 &amp;amp;&amp;amp;
            'Date(454)'[fiscal_week_in_year] = 53
        )
    ),
    BLANK(),
    CALCULATE(SUM('fact'[sales]), LYDate)
)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="4" color="#000000"&gt;Date &lt;FONT color="#99CC00"&gt;Table Enhancement&lt;/FONT&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT color="#000000"&gt;Add a column to your date table to identify valid same-period-last-year dates:&lt;/FONT&gt;&lt;/H3&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;// Add this as a calculated column to DimDate
Valid SPY Date = 
VAR CurrentFiscalYear = [fiscal_year]
VAR CurrentFiscalDay = [fiscal_day_in_year]
RETURN
CALCULATE(
    COUNTROWS('Date(454)'),
    FILTER(
        ALL('Date(454)'),
        'Date(454)'[fiscal_year] = CurrentFiscalYear - 1 &amp;amp;&amp;amp;
        'Date(454)'[fiscal_day_in_year] = CurrentFiscalDay
    )
) &amp;gt; 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest starting with &lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;First Solution&lt;/FONT&gt;&lt;/STRONG&gt; as it's the most reliable for custom fiscal calendars. It directly matches fiscal days between years rather than relying on calendar date offsets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;if this post helps, then I would appreciate a thumbs up&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Nov 2025 00:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4873695#M185773</guid>
      <dc:creator>Ahmed-Elfeel</dc:creator>
      <dc:date>2025-11-13T00:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4876969#M185855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1408039" data-lia-user-login="bpratyusha" class="lia-mention lia-mention-user"&gt;bpratyusha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to the Microsoft Community Forum.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="838901" data-lia-user-login="Ahmed-Elfeel" class="lia-mention lia-mention-user"&gt;Ahmed-Elfeel&lt;/a&gt;&amp;nbsp;, Thank you for your prompt response.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1408039" data-lia-user-login="bpratyusha" class="lia-mention lia-mention-user"&gt;bpratyusha&lt;/a&gt;&amp;nbsp;,&amp;nbsp; C&lt;/SPAN&gt;ould you please try the proposed solution shared by&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="838901" data-lia-user-login="Ahmed-Elfeel" class="lia-mention lia-mention-user"&gt;Ahmed-Elfeel&lt;/a&gt;&amp;nbsp;? Let us know if you’re still facing the same issue we’ll be happy to assist you further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dinesh&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 04:50:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4876969#M185855</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-11-17T04:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4878047#M185888</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1249554" data-lia-user-login="v-dineshya" class="lia-mention lia-mention-user"&gt;v-dineshya&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have followed all the steps to work with Enhanced Time Intelligence feature according to the documentation &lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-time-intelligence" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-time-intelligence&lt;/A&gt; and defined the Retail calendar (pattern).&lt;/P&gt;&lt;P&gt;I have defined all the highlighted categories as shown in the picture.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Created the following measure to test this feature&lt;/P&gt;&lt;P&gt;LY sales (sameperiodly) = CALCULATE(sum('fact'[sales]), SAMEPERIODLASTYEAR('Date(454)') )&lt;/P&gt;&lt;P&gt;LY Sales (dateadd) = CALCULATE(sum('fact'[sales]), DATEADD('Date(454)' , -1, YEAR))&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LY Sales corrected &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;When&amp;nbsp; SamePeriodLastYear is used the LY sales appear to same for all days in week 53&lt;/P&gt;&lt;P&gt;When DateAdd is used then week 53 it returns null values only bug is the highlighted LY sales in the image (in red) which is almost 6 times.&lt;/P&gt;&lt;P&gt;LY sales corrected values appears to be correct , however I don’t see value in Total column&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Is there any bug with Sameperiodlastyear and DateAdd functionality even after the new Enhanced Time Intelligence feature is launched ? Please help me resolve the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 22:57:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4878047#M185888</guid>
      <dc:creator>bpratyusha</dc:creator>
      <dc:date>2025-11-17T22:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4878602#M185899</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1408039" data-lia-user-login="bpratyusha" class="lia-mention lia-mention-user"&gt;bpratyusha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;SAMEPERIODLASTYEAR works by shifting the entire set of dates by one year, but it expects a continuous date range. In a 454 calendar, Week 53 is not always present in the previous year. When it tries to map Week 53 from the current year to last year, it often defaults to the last available date range, causing repeated values. This is why you see the same LY Sales for all days in Week 53.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATEADD shifts each date individually by the specified interval like -1 YEAR.&lt;BR /&gt;If the shifted date doesn’t exist in your custom calendar like Week 53 last year, it returns BLANK. This is expected behavior for DATEADD with non-standard calendars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your corrected measure likely uses logic like IF(HASONEVALUE(...), ... , BLANK()) or similar row-level calculation. Totals disappear because the calculation doesn’t aggregate properly at higher levels like month or year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, this is not a bug. It’s a limitation of how these functions work with custom calendars. The new Enhanced Time Intelligence feature helps generate relationships and patterns, but it doesn’t change the fundamental behavior of SAMEPERIODLASTYEAR or DATEADD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try below alternative workaround.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a mapping table for current year vs. last year weeks including Week 53 logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Use LOOKUPVALUE or TREATAS to map the correct week from last year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Alternatively, use OFFSET-based functions introduced in Enhanced Time Intelligence like OFFSET(-1, YEAR), which are designed for irregular calendars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer below sample measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LY Sales (Offset) =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('fact'[sales]),&lt;BR /&gt;OFFSET(-1, YEAR, ALL('Date(454)'))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Please refer below links.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/sameperiodlastyear-function-dax" target="_blank"&gt;SAMEPERIODLASTYEAR function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/SAMEPERIODLASTYEAR-AND-DATEADD-DIFFERENT-RESULTS-FOR-DAY-MONTH/td-p/3646866" target="_blank"&gt;Solved: SAMEPERIODLASTYEAR AND DATEADD DIFFERENT RESULTS F... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information helps. Please do let us know if you have any further queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 12:44:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4878602#M185899</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-11-18T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4878994#M185915</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1249554" data-lia-user-login="v-dineshya" class="lia-mention lia-mention-user"&gt;v-dineshya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank for the detailed explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the highlighted image, dateadd function worked correctly , it retuned null values. However the only issue with this it inflates the LY sales by 6 times as highlighted in the above image in red.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;OFFSET functionality doesnt seem to work. Either it is not able to identify the YEAR parameter (Parameter is not correct type) and also it is not able to identiy&amp;nbsp;&lt;SPAN&gt;'Date(454)' table as it is mapped internally to DimDate.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In addition to this , I'm working on creating a DatePeriod slicer (LW, MTD, QTD, STD, WTD, YESTERDAY, YTD) that interacts with Date Range Slicer and Measures.&amp;nbsp;&lt;BR /&gt;The DatePeriod Tabe has "Date" ,Period columns.&amp;nbsp;&lt;BR /&gt;Relationship is defined as DatePeriod (Many) to One (DimDate) and cross filtered on both directions.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However when a particular period is selected , it doesnt return any values for LY Sales&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure defintion remains same as in the above post.&amp;nbsp; I used RemoveFilters to remove the context however it dint work. Could you please help me resolve this issue ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 19:52:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4878994#M185915</guid>
      <dc:creator>bpratyusha</dc:creator>
      <dc:date>2025-11-18T19:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4881823#M185988</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1408039" data-lia-user-login="bpratyusha" class="lia-mention lia-mention-user"&gt;bpratyusha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try below two options for LY measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Your table is DimDate, but the Enhanced Calendar object is called Date(454). However OFFSET must always reference DimDate, NOT the name of the calendar object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LY Sales =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('fact'[sales]),&lt;BR /&gt;OFFSET(&lt;BR /&gt;-1,&lt;BR /&gt;ORDERBY(DimDate[fiscal_day_in_year]),&lt;BR /&gt;MATCHBY(DimDate[fiscal_year]),&lt;BR /&gt;DEFAULT&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. LY based on fiscal_year – 1 + same fiscal_day_in_year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LY Sales =&lt;BR /&gt;VAR CurrentFiscalYear =&lt;BR /&gt;SELECTEDVALUE ( DimDate[fiscal_year] )&lt;/P&gt;
&lt;P&gt;VAR CurrentFiscalDay =&lt;BR /&gt;SELECTEDVALUE ( DimDate[fiscal_day_in_year] )&lt;/P&gt;
&lt;P&gt;VAR TargetFiscalYear =&lt;BR /&gt;CurrentFiscalYear - 1&lt;/P&gt;
&lt;P&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( Fact[sales] ),&lt;BR /&gt;KEEPFILTERS (&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL ( DimDate ),&lt;BR /&gt;DimDate[fiscal_year] = TargetFiscalYear&lt;BR /&gt;&amp;amp;&amp;amp; DimDate[fiscal_day_in_year] = CurrentFiscalDay&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your DatePeriod slicer breaks LY because of bidirectional relationships. Use SINGLE-direction relationship instead of bidirectional relationships.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cross filter direction, Single (DatePeriod --&amp;gt; DimDate)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DATEADD &amp;amp; SAMEPERIODLASTYEAR ARE NOT SUPPORTED for custom calendars. It is a limitation.&amp;nbsp; We would recommend submitting your detailed feedback and ideas through Microsoft's official feedback channels, such as Microsoft Fabric Ideas. Feedback submitted through these channels is frequently reviewed by the product teams and can contribute to meaningful improvements.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideas.fabric.microsoft.com/ideas/search-ideas/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://ideas.fabric.microsoft.com/ideas/search-ideas/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some members havesubmitted ideas regarding&amp;nbsp;SAMEPERIODLASTYEAR&amp;nbsp; function in ideas forum. Please refer below link, if any idea is related to your query please upvote the particluar idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/forums/searchpage/tab/message?filter=location&amp;amp;q=SAMEPERIODLASTYEAR&amp;amp;noSynonym=false&amp;amp;inactive=false&amp;amp;location=idea-board:fbc_ideas&amp;amp;collapse_discussion=true" target="_blank"&gt;Search - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for being a valued member in Microsoft Fabric Community Forum&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 07:46:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4881823#M185988</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-11-21T07:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4883841#M186018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1408039" data-lia-user-login="bpratyusha" class="lia-mention lia-mention-user"&gt;bpratyusha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We haven’t heard from you on the last response and was just checking back to see ,&amp;nbsp;&lt;SPAN&gt;Could you please confirm if you've submitted this as an idea in the Ideas Forum? If so, sharing the link here would be helpful for other community members who may have similar feedback.&amp;nbsp;Thank you for being part of the Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dinesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 09:57:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4883841#M186018</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-11-24T09:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4884572#M186035</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1249554" data-lia-user-login="v-dineshya" class="lia-mention lia-mention-user"&gt;v-dineshya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the recommendations. I tried to implemented yet I'm blocked on the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. LY Sales (offset) functionality dint really work. ORDERBY and MATCHBY is not recognizing DimDate table and its attributes. Also there is no DEFAULT.&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;2.&amp;nbsp;&lt;SPAN&gt;LY based on fiscal_year – 1 + same fiscal_day_in_year. The recommended measure also dint work. It returned blank values.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The measure worked when KEEPFILTERS is removed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;3.&amp;nbsp;&lt;SPAN&gt;Cross filter direction, Single (DatePeriod --&amp;gt; DimDate). I changed it to Single then tested it dint work&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how to set the Signle direction of the filter from date period to dimDate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I will submit an idea in the feedback channel so that the product team can work on the improvements.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 19:08:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4884572#M186035</guid>
      <dc:creator>bpratyusha</dc:creator>
      <dc:date>2025-11-24T19:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SAMEPERIODLASTYEAR in Enhanced DAX Time Intelligence (Preview) Week 53 returns incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4884912#M186048</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1408039" data-lia-user-login="bpratyusha" class="lia-mention lia-mention-user"&gt;bpratyusha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for the update.&amp;nbsp; Once you submitted the idea, please&amp;nbsp;&lt;SPAN&gt;share the link here would be helpful for other community members who may have similar feedback.&amp;nbsp;Thank you for being part of the Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dinesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 05:17:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-SAMEPERIODLASTYEAR-in-Enhanced-DAX-Time-Intelligence/m-p/4884912#M186048</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-11-25T05:17:21Z</dc:date>
    </item>
  </channel>
</rss>

