<?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: getting fiscal YTD based on filtered year and month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-fiscal-YTD-based-on-filtered-year-and-month/m-p/3587863#M138485</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 00:50:50 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-12-18T00:50:50Z</dc:date>
    <item>
      <title>getting fiscal YTD based on filtered year and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-fiscal-YTD-based-on-filtered-year-and-month/m-p/3583232#M138241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;currently im getting the whole fiscal year from July 2022 - June 2023&amp;nbsp;&lt;/P&gt;&lt;P&gt;but my filter month is till May 2023 only how to get the YTD of July 2022 - May 2023 only&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;expected output : 43M only&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;current measure:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PNL AU Year to Date:=&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var selectedYear&lt;/STRONG&gt; = year(max(FLOATING_DATE[Date]))&lt;BR /&gt;&lt;STRONG&gt;var selectedMonth&lt;/STRONG&gt; = MONTH(max(FLOATING_DATE[Date]))&lt;BR /&gt;&lt;STRONG&gt;var selectedYearMonth&lt;/STRONG&gt; = FORMAT(max(FLOATING_DATE[Date]),"YYYYMM")&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;CALCULATE([PNL AMOUNT],FILTER(DIM_DATE,DIM_Date[Fiscalyear]=selectedYear),ALL(SELECT_PERIOD))&lt;/P&gt;&lt;P&gt;ive try to add DIM_DATE[fiscalmonth] &amp;lt;= selectedMonth but its not getting the same value&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FLOATING_DATE TABLE&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;DIM_DATE TABLE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 05:47:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-fiscal-YTD-based-on-filtered-year-and-month/m-p/3583232#M138241</guid>
      <dc:creator>Easley08</dc:creator>
      <dc:date>2023-12-14T05:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: getting fiscal YTD based on filtered year and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-fiscal-YTD-based-on-filtered-year-and-month/m-p/3587863#M138485</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 00:50:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-fiscal-YTD-based-on-filtered-year-and-month/m-p/3587863#M138485</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-18T00:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: getting fiscal YTD based on filtered year and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-fiscal-YTD-based-on-filtered-year-and-month/m-p/3605148#M139282</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="494564" data-lia-user-login="Easley08" class="lia-mention lia-mention-user"&gt;Easley08&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;Date:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Start date of the financial year = IF(MONTH([Date])&amp;lt;7,DATE(Year([Date])-1,7,1),DATE(Year([Date]),7,1))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = Var _Start=CALCULATE(MAX('Date'[Start date of the financial year]),FILTER(ALL('Date'),[Date]=SELECTEDVALUE('Date'[Date])))
Return
CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),[Date]&amp;gt;=_Start&amp;amp;&amp;amp;[Date]&amp;lt;=SELECTEDVALUE('Date'[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is this the result you expect?&lt;/SPAN&gt; &lt;SPAN&gt;Please see the attached document.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 09:57:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-fiscal-YTD-based-on-filtered-year-and-month/m-p/3605148#M139282</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-12-28T09:57:26Z</dc:date>
    </item>
  </channel>
</rss>

