<?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: M language in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4263559#M141010</link>
    <description>&lt;P&gt;THank you. I was asking three year backwards. Is it supposed to be:&lt;BR /&gt;&lt;SPAN&gt;Date of next three year=&amp;gt; Date.AddYear(Date.from(DateRime.LocalNow()),-3)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 09:05:04 GMT</pubDate>
    <dc:creator>IF</dc:creator>
    <dc:date>2024-10-30T09:05:04Z</dc:date>
    <item>
      <title>M language</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4262158#M140942</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am using the following and it is working well. How can I get dynamically: "today-3 years" and "today + end of next year".&lt;BR /&gt;For example today is 2024-Oct-29.&amp;nbsp;&lt;/P&gt;&lt;P&gt;today-4 years is 2020-Oct-29&lt;/P&gt;&lt;P&gt;today + end of next year is 2025-Dec-31&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;PRE&gt;let
    Today = Date.From(DateTime.LocalNow()),
    TodayFormatted = Date.ToText(Today, "dd.MM.yyyy"),
    TomorrowFormatted = Date.ToText(Date.AddDays(Today, 1), "dd.MM.yyyy")
in
    TomorrowFormatted&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 11:26:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4262158#M140942</guid>
      <dc:creator>IF</dc:creator>
      <dc:date>2024-10-29T11:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: M language</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4262184#M140944</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;= Date.FromText( Text.From( Date.Year(Date.AddYears( Date.From(DateTime.LocalNow()),1))) &amp;amp; "-12-31")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 11:41:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4262184#M140944</guid>
      <dc:creator>SamWiseOwl</dc:creator>
      <dc:date>2024-10-29T11:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: M language</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4262192#M140945</link>
      <description>&lt;P&gt;You can add year to specific date by Date.AddYear and also calculate the last date of a year by&amp;nbsp;&lt;SPAN&gt;Date. EndOfYear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So your dates can be achieved by the below formual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Today date =&amp;gt; Date.from(DateRime.LocalNow())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date of next three year=&amp;gt; Date.AddYear(Date.from(DateRime.LocalNow()),3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;End of next year =&amp;gt; Date.EndOfYear(Date.AddYear(Date.From(DateTime.LocalNow()),1))&lt;/SPAN&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 11:49:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4262192#M140945</guid>
      <dc:creator>Omid_Motamedise</dc:creator>
      <dc:date>2024-10-29T11:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: M language</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4263146#M141001</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="213851" data-lia-user-login="IF" class="lia-mention lia-mention-user"&gt;IF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both&amp;nbsp;Omid_Motamedise&amp;nbsp;and&amp;nbsp;SamWiseOwl have provided great solutions. Hope they could help you.&lt;/P&gt;
&lt;P&gt;If possible, accept the replies as solutions. This will make it easier for the future people to find the answer quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 02:55:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4263146#M141001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-30T02:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: M language</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4263559#M141010</link>
      <description>&lt;P&gt;THank you. I was asking three year backwards. Is it supposed to be:&lt;BR /&gt;&lt;SPAN&gt;Date of next three year=&amp;gt; Date.AddYear(Date.from(DateRime.LocalNow()),-3)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 09:05:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/M-language/m-p/4263559#M141010</guid>
      <dc:creator>IF</dc:creator>
      <dc:date>2024-10-30T09:05:04Z</dc:date>
    </item>
  </channel>
</rss>

