<?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: Add a new ToDate column using values in the FromDate columns next row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-a-new-ToDate-column-using-values-in-the-FromDate-columns/m-p/1915929#M41485</link>
    <description>&lt;P&gt;This works exactly as expected. Thanks a lot. Have a great day.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 23:21:37 GMT</pubDate>
    <dc:creator>danols</dc:creator>
    <dc:date>2021-06-22T23:21:37Z</dc:date>
    <item>
      <title>Add a new ToDate column using values in the FromDate columns next row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-a-new-ToDate-column-using-values-in-the-FromDate-columns/m-p/1915375#M41458</link>
      <description>&lt;P&gt;I have a table with product, cost &amp;amp; from_date column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a new column with a to_date. The to_date should be the day before the start of the next from_date intervall.&lt;/P&gt;&lt;P&gt;Is it possible to create a column like this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 16:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-a-new-ToDate-column-using-values-in-the-FromDate-columns/m-p/1915375#M41458</guid>
      <dc:creator>danols</dc:creator>
      <dc:date>2021-06-22T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new ToDate column using values in the FromDate columns next row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-a-new-ToDate-column-using-values-in-the-FromDate-columns/m-p/1915555#M41469</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="308707" data-lia-user-login="danols" class="lia-mention lia-mention-user"&gt;danols&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a calculated column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ToDate =
VAR next_ =
    CALCULATE (
        MIN ( Table1[FromDate] ),
        Table1[FromDate] &amp;gt; EARLIER ( Table1[FromDate] ),
        ALLEXCEPT ( Table1, Table1[Prod] )
    )
VAR res_ =
    IF ( ISBLANK ( next_ ), DATE ( 2099, 12, 31 ), next_ - 1 )
RETURN
    res_&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="height: 100px; width: 100%; border-collapse: collapse; border-style: groove; border-color: #0c1c49; background-color: #00675f;" border="0" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15px;"&gt;
&lt;TD width="15.961305925030231%" style="width: 92px; height: 15px;"&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="84.03869407496977%" style="width: 485px; height: 15px; text-align: left;"&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Please accept the solution when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4.5" color="#FF99CC"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 19:07:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-a-new-ToDate-column-using-values-in-the-FromDate-columns/m-p/1915555#M41469</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-06-22T19:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add a new ToDate column using values in the FromDate columns next row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-a-new-ToDate-column-using-values-in-the-FromDate-columns/m-p/1915929#M41485</link>
      <description>&lt;P&gt;This works exactly as expected. Thanks a lot. Have a great day.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 23:21:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-a-new-ToDate-column-using-values-in-the-FromDate-columns/m-p/1915929#M41485</guid>
      <dc:creator>danols</dc:creator>
      <dc:date>2021-06-22T23:21:37Z</dc:date>
    </item>
  </channel>
</rss>

