<?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 Last Year to date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4251184#M168331</link>
    <description>&lt;P&gt;Hi. xifeng_L. Thank you for your reply. Where do you take fiscal year into account - as I see it it will be based on the regular year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 16:26:36 GMT</pubDate>
    <dc:creator>betterreportsDK</dc:creator>
    <dc:date>2024-10-21T16:26:36Z</dc:date>
    <item>
      <title>Fiscal Last Year to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4250745#M168304</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have an issue creating a measure which offsets the fiscal year by 1, but I have yet to find a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a datetable with fiscal year, fiscalyearnumeriic, fiscalyearoffset etc.&lt;/P&gt;&lt;P&gt;I have managed to create a Fiscal Year To date measure using this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rev YTD =&lt;/SPAN&gt; &lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;vMaxDate&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;calender_tbl&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[Rev]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;calender_tbl&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;calender_tbl&lt;/SPAN&gt;&lt;SPAN&gt;[FiscalYear]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;calender_tbl&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;vMaxDate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Oct 2024 12:13:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4250745#M168304</guid>
      <dc:creator>betterreportsDK</dc:creator>
      <dc:date>2024-10-21T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Last Year to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4250830#M168305</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685603" data-lia-user-login="betterreportsDK" class="lia-mention lia-mention-user"&gt;betterreportsDK&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming you have a field like FiscalYearOffset in your calendar_tbl (which indicates an offset value), here’s how you can tweak your measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Rev YTD = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR vMaxDate = MAX(calendar_tbl[Date])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR vFiscalYearOffset = -1 -- Offset Fiscal Year by 1 (You can adjust this)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;RETURN &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CALCULATE(SUM(Sales[Rev]),ALL(calendar_tbl),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VALUES(calendar_tbl[FiscalYear] + vFiscalYearOffset), -- Apply Offset&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;calendar_tbl[Date] &amp;lt;= vMaxDate)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This formula assumes that you want to offset the fiscal year by subtracting one year. Adjust the vFiscalYearOffset as needed (e.g., use +1 if the logic requires advancing the fiscal year)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 13:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4250830#M168305</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-10-21T13:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Last Year to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4251049#M168318</link>
      <description>&lt;P&gt;Can try below measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rev PY YTD = 
CALCULATE(
    SUM(Sales[Rev]),
    DATEADD(DATESYTD(Calendar_Tbl[Date]),-1,YEAR)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you~&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 14:55:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4251049#M168318</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-10-21T14:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Last Year to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4251179#M168330</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Dharmendar S&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. I get the error that "a single value for&amp;nbsp;&lt;SPAN&gt;calendar_tbl[FiscalYear] cannot be be determined". I have defined FiscalYear is a whole number, which I think makes sense.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 16:22:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4251179#M168330</guid>
      <dc:creator>betterreportsDK</dc:creator>
      <dc:date>2024-10-21T16:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Last Year to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4251184#M168331</link>
      <description>&lt;P&gt;Hi. xifeng_L. Thank you for your reply. Where do you take fiscal year into account - as I see it it will be based on the regular year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 16:26:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4251184#M168331</guid>
      <dc:creator>betterreportsDK</dc:creator>
      <dc:date>2024-10-21T16:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Last Year to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4252198#M168397</link>
      <description>&lt;P&gt;Hi, If you still seaching for the solution, please share sample data representing your dataset. all these solutions will work depending upon how you are deploying. also share the desired output based on the sample data.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 08:14:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4252198#M168397</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-10-22T08:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Last Year to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4254211#M168521</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I managed to find a solution to this problem, using offset function. I will adjust it to take leap year inte account when I get the time. It works, but I might have overlooked something.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LFYTD=last fiscal year to date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rev FYTD=revenue fiscal year to date measure presented above&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rev LFYTD = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Rev FYTD],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OFFSET&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; -&lt;/SPAN&gt;&lt;SPAN&gt;365&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(calender_tbl[Date]),&lt;/SPAN&gt;&lt;SPAN&gt;ORDERBY&lt;/SPAN&gt;&lt;SPAN&gt;(calender_tbl[date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Oct 2024 11:09:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-Last-Year-to-date/m-p/4254211#M168521</guid>
      <dc:creator>betterreportsDK</dc:creator>
      <dc:date>2024-10-23T11:09:04Z</dc:date>
    </item>
  </channel>
</rss>

