<?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 Offset column with a date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Offset-column-with-a-date/m-p/3443388#M130863</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;here is my problem :&lt;BR /&gt;I'm trying to offset a column so that i can have the time between operations (in powerbi dax)&lt;BR /&gt;the thing is that i can do it with numbers but i dont know why i can't do it with text.&lt;BR /&gt;Can someone help me do it please ?&lt;BR /&gt;Here is a exemple of a table that i have ( the data is not real) with an added offset colum that i want to code via DAX&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Sep 2023 15:16:05 GMT</pubDate>
    <dc:creator>stsdrillingeng3</dc:creator>
    <dc:date>2023-09-22T15:16:05Z</dc:date>
    <item>
      <title>Offset column with a date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Offset-column-with-a-date/m-p/3443388#M130863</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;here is my problem :&lt;BR /&gt;I'm trying to offset a column so that i can have the time between operations (in powerbi dax)&lt;BR /&gt;the thing is that i can do it with numbers but i dont know why i can't do it with text.&lt;BR /&gt;Can someone help me do it please ?&lt;BR /&gt;Here is a exemple of a table that i have ( the data is not real) with an added offset colum that i want to code via DAX&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Sep 2023 15:16:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Offset-column-with-a-date/m-p/3443388#M130863</guid>
      <dc:creator>stsdrillingeng3</dc:creator>
      <dc:date>2023-09-22T15:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Offset column with a date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Offset-column-with-a-date/m-p/3444743#M131010</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="621259" data-lia-user-login="stsdrillingeng3" class="lia-mention lia-mention-user"&gt;stsdrillingeng3&lt;/a&gt;&amp;nbsp;possible solution is calculated column as below. Adjust Sheet1 to your table name.&lt;/P&gt;&lt;P&gt;This solution assumes that column ID is unique value to identify row for end date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Offset formula =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;__current_id&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Sheet1&lt;/SPAN&gt;&lt;SPAN&gt;[id]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sheet1&lt;/SPAN&gt;&lt;SPAN&gt;[end_date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sheet1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Sheet1&lt;/SPAN&gt;&lt;SPAN&gt;[id]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;__current_id&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Did I answer correctly? Kudos appreciate / accept solution.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 24 Sep 2023 14:31:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Offset-column-with-a-date/m-p/3444743#M131010</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-09-24T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Offset column with a date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Offset-column-with-a-date/m-p/3445278#M131066</link>
      <description>&lt;P&gt;Yeas it works perfectly thanks a lot ! I tried using the offset formula but yours is so much more easier and comprehensible.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 06:53:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Offset-column-with-a-date/m-p/3445278#M131066</guid>
      <dc:creator>stsdrillingeng3</dc:creator>
      <dc:date>2023-09-25T06:53:20Z</dc:date>
    </item>
  </channel>
</rss>

