<?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 need help with limiting date range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-with-limiting-date-range/m-p/3866261#M151024</link>
    <description>&lt;P&gt;I have a dashboard with work orders that are scheduled, closed and a running total by fiscal year...a 10 year trend.&amp;nbsp; How can I limit the trend to only show me scheduled work to current fiscal year and previous 10?&amp;nbsp; Right now, it's showing scheduled work orders way out in the future.&amp;nbsp; Is there a formula to show ONLY scheduled and closed for the last 10 fiscal years?&amp;nbsp; Help needed!&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;</description>
    <pubDate>Wed, 24 Apr 2024 18:06:21 GMT</pubDate>
    <dc:creator>72_tam</dc:creator>
    <dc:date>2024-04-24T18:06:21Z</dc:date>
    <item>
      <title>need help with limiting date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-with-limiting-date-range/m-p/3866261#M151024</link>
      <description>&lt;P&gt;I have a dashboard with work orders that are scheduled, closed and a running total by fiscal year...a 10 year trend.&amp;nbsp; How can I limit the trend to only show me scheduled work to current fiscal year and previous 10?&amp;nbsp; Right now, it's showing scheduled work orders way out in the future.&amp;nbsp; Is there a formula to show ONLY scheduled and closed for the last 10 fiscal years?&amp;nbsp; Help needed!&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;</description>
      <pubDate>Wed, 24 Apr 2024 18:06:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-with-limiting-date-range/m-p/3866261#M151024</guid>
      <dc:creator>72_tam</dc:creator>
      <dc:date>2024-04-24T18:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: need help with limiting date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-with-limiting-date-range/m-p/3866265#M151025</link>
      <description>&lt;P&gt;This is how I clculated running total&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Running Total in FY = CALCULATE([Difference], FILTER(ALLSELECTED(Append1[Year]), ISONORAFTER([Year], MAX([Year]), DESC)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Apr 2024 18:07:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-with-limiting-date-range/m-p/3866265#M151025</guid>
      <dc:creator>72_tam</dc:creator>
      <dc:date>2024-04-24T18:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: need help with limiting date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-with-limiting-date-range/m-p/3867293#M151070</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="635271" data-lia-user-login="72_tam" class="lia-mention lia-mention-user"&gt;72_tam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _today=TODAY()
return
IF(
    MAX('Table'[Date].[Year])&amp;gt;=YEAR(_today)-10&amp;amp;&amp;amp; MAX('Table'[Date].[Year])&amp;lt;=YEAR(_today),1,0)&lt;/LI-CODE&gt;
&lt;P&gt;2. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 06:17:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-help-with-limiting-date-range/m-p/3867293#M151070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-25T06:17:10Z</dc:date>
    </item>
  </channel>
</rss>

