<?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: Adding Number of Months to a Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113617#M110143</link>
    <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524744" data-lia-user-login="Digger99" class="lia-mention lia-mention-user"&gt;Digger99&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please check if the data type of [First Order] is date/time, [LT] is whole number.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 11:05:09 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-03-06T11:05:09Z</dc:date>
    <item>
      <title>Adding Number of Months to a Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113586#M110134</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add two different numbers to a date within my table using DAX. The date is when the product needs to be purchased 'First Order', i then want to add the Lead Time to this date 'LT' and then an additional 2 months to allow enough time for it to be shown in my account. The table looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;First Order&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;LT (Months)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;06/03/2023&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;09/03/2023&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/03/2023&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected result would be - 06/03/2023 + 10 (LT) + 2 (Additional Months) = 06/03/2024&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 10:48:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113586#M110134</guid>
      <dc:creator>Digger99</dc:creator>
      <dc:date>2023-03-06T10:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Number of Months to a Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113600#M110135</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524744" data-lia-user-login="Digger99" class="lia-mention lia-mention-user"&gt;Digger99&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to add a calculated column like:&lt;/P&gt;&lt;DIV&gt;Column =&lt;SPAN&gt;EDATE([&lt;/SPAN&gt;&lt;SPAN&gt;First Order&lt;/SPAN&gt;&lt;SPAN&gt;], [LT]+2)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2023 10:55:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113600#M110135</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-06T10:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Number of Months to a Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113610#M110139</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I have tried EDATE but i get the error message "An argument of function 'EDATE' has the wrong data type or the result is too large or too small".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 11:02:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113610#M110139</guid>
      <dc:creator>Digger99</dc:creator>
      <dc:date>2023-03-06T11:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Number of Months to a Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113616#M110142</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;new_clm = &lt;/SPAN&gt;&lt;SPAN&gt;EDATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[First Order]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[LT (Months)]&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shreya&lt;/P&gt;&lt;P&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;BR /&gt;Did I answer your question? Mark my post as a solution!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2023 11:04:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113616#M110142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-06T11:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Number of Months to a Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113617#M110143</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524744" data-lia-user-login="Digger99" class="lia-mention lia-mention-user"&gt;Digger99&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please check if the data type of [First Order] is date/time, [LT] is whole number.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 11:05:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113617#M110143</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-06T11:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Number of Months to a Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113629#M110146</link>
      <description>&lt;P&gt;Can confirm that [First Order] is Date/Time - it was just date before but have changed to Date/Time. [LT] is a whole number.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 11:10:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113629#M110146</guid>
      <dc:creator>Digger99</dc:creator>
      <dc:date>2023-03-06T11:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Number of Months to a Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113643#M110149</link>
      <description>&lt;P&gt;Hi Shreya,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. I have tried EDATE but seem to get an error message&amp;nbsp;&lt;SPAN&gt;"An argument of function 'EDATE' has the wrong data type or the result is too large or too small".&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Do you have anything else i could try?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 11:15:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113643#M110149</guid>
      <dc:creator>Digger99</dc:creator>
      <dc:date>2023-03-06T11:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Number of Months to a Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113650#M110151</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;I have just tried it another table and its been accepted. I think because i was using the EDATE function in a calculated table it was throwing an error up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the help, i will accept your comment as the solution!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 11:23:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-Number-of-Months-to-a-Date/m-p/3113650#M110151</guid>
      <dc:creator>Digger99</dc:creator>
      <dc:date>2023-03-06T11:23:50Z</dc:date>
    </item>
  </channel>
</rss>

