<?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: How to show last 4 years sales with current ytd using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-last-4-years-sales-with-current-ytd-using-DAX/m-p/2494925#M68796</link>
    <description>&lt;P&gt;Thanks,&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;. Will try this one and let you know shortly.&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 05:29:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-05T05:29:19Z</dc:date>
    <item>
      <title>How to show last 4 years sales with current ytd using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-last-4-years-sales-with-current-ytd-using-DAX/m-p/2494101#M68766</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help on DAX , client requested to show last 4 years sales with current YTD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Francis&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 17:25:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-last-4-years-sales-with-current-ytd-using-DAX/m-p/2494101#M68766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-04T17:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to show last 4 years sales with current ytd using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-last-4-years-sales-with-current-ytd-using-DAX/m-p/2494774#M68788</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , I think you need the last 4 years + data till today &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last 4 year till date = &lt;BR /&gt;var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())&lt;BR /&gt;var _min = eomonth(_max,-1*MONTH(_max) -48 )+1 &lt;BR /&gt;return&lt;BR /&gt;CALCULATE([net] ,filter('Date', 'Date'[Date]&amp;gt;= _min &amp;amp;&amp;amp;&amp;nbsp; 'Date'[Date]&amp;lt;= _max))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;Last 4 year till date&amp;nbsp; = &lt;BR /&gt;var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())&lt;BR /&gt;var _min = eomonth(_max,-1*MONTH(_max) -48 )+1 &lt;BR /&gt;return&lt;BR /&gt;CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))&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>Thu, 05 May 2022 03:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-last-4-years-sales-with-current-ytd-using-DAX/m-p/2494774#M68788</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-05T03:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to show last 4 years sales with current ytd using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-last-4-years-sales-with-current-ytd-using-DAX/m-p/2494925#M68796</link>
      <description>&lt;P&gt;Thanks,&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;. Will try this one and let you know shortly.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 05:29:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-last-4-years-sales-with-current-ytd-using-DAX/m-p/2494925#M68796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T05:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to show last 4 years sales with current ytd using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-last-4-years-sales-with-current-ytd-using-DAX/m-p/2503963#M69290</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark the answer as solution if it works.&lt;/P&gt;
&lt;P&gt;If not, please show some sample data and expected result to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 08:07:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-last-4-years-sales-with-current-ytd-using-DAX/m-p/2503963#M69290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-10T08:07:25Z</dc:date>
    </item>
  </channel>
</rss>

