<?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: DAX to create job start time based on &amp;quot;Day start time &amp;amp; Duration&amp;quot; in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2232525#M53276</link>
    <description>&lt;P&gt;The solution provided by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt; seems to be working but on small table &amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to accomplish two steps &amp;nbsp;before executing calculation&lt;/P&gt;&lt;P&gt;# select all rows for any given day by &lt;STRONG&gt;Start-job-day time&lt;/STRONG&gt; &amp;nbsp;+ &lt;STRONG&gt;Sort by system Seq&lt;/STRONG&gt; à&amp;nbsp; Then calculate column based on Duration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I’m not sure if this is achievable &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 12:39:04 GMT</pubDate>
    <dc:creator>neees78</dc:creator>
    <dc:date>2021-12-10T12:39:04Z</dc:date>
    <item>
      <title>DAX to create job start time based on "Day start time &amp; Duration"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2229663#M53173</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've the following table - all columns in green are available - entered manually by users&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Question&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;is there a way to&amp;nbsp; get "start date per job item" calculated using &lt;STRONG&gt;'start date day&lt;/STRONG&gt;' &amp;amp; &lt;STRONG&gt;'Dur (hr)'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but sorted by &lt;STRONG&gt;&lt;U&gt;system sequence ,&amp;nbsp;&lt;/U&gt;&lt;/STRONG&gt; so the result will be similar to this column in Yellow&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;**each new job day starts at 00:00 hrs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 07:54:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2229663#M53173</guid>
      <dc:creator>neees78</dc:creator>
      <dc:date>2021-12-09T07:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to create job start time based on "Day start time &amp; Duration"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2229727#M53175</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am not fully certain I understood your question but, basically what you want to do is to have a calculated column and then sort it based on [system sequency]? There is a functionality called sort by column so 1st you can create a new calculated column and afterwards you can select "sort by column" to sort this calculated column based on the sequency column.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hopefully this helps and if it does consider accepting this as a solution!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 08:14:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2229727#M53175</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2021-12-09T08:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to create job start time based on "Day start time &amp; Duration"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2229811#M53177</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289149" data-lia-user-login="neees78" class="lia-mention lia-mention-user"&gt;neees78&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Add the following calculated column to your table to get the addition of Start date and Duration of previous row:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Start Date Per Job Item = 
VAR __SYS = Table3[System Sequent] 
VAR __LASTSYS = 
    CALCULATE(
        MAX( Table3[System Sequent] ),
        Table3[System Sequent] &amp;lt; __SYS,
        ALLEXCEPT(Table3 , Table3[Event] )
    )
VAR __LASTDUR = 
     CALCULATE(
        SUM( Table3[Dur (hr)] ),
        Table3[System Sequent] &amp;lt;= __LASTSYS,
        ALLEXCEPT(Table3 , Table3[Event] )
    )
RETURN

 Table3[Start Date (day)] +  TIME(__LASTDUR,0,0)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I formatted the column as follows to show 24hr time&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 08:39:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2229811#M53177</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-12-09T08:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to create job start time based on "Day start time &amp; Duration"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2232494#M53273</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot it worked very well for the test table but the problem I have is that my rows are not in necessarily in&amp;nbsp;order&lt;/P&gt;&lt;P&gt;(Duration is not always going to be previous row) &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the &lt;STRONG&gt;&lt;U&gt;system sequence is used to sort rows&lt;/U&gt;&lt;/STRONG&gt; &amp;nbsp;BUT &lt;STRONG&gt;&lt;U&gt;after selecting job-start-day &amp;nbsp;&lt;/U&gt;&lt;/STRONG&gt;, then previous row calculation will be correct , I'm&amp;nbsp;not sure if this is achievable !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it’s a large table but for a given date day all job item entered as per system sequence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example for 1 day record -sorted by resulted calcualted column&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;same if sorted by sys-sequence&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 12:14:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2232494#M53273</guid>
      <dc:creator>neees78</dc:creator>
      <dc:date>2021-12-10T12:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to create job start time based on "Day start time &amp; Duration"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2232525#M53276</link>
      <description>&lt;P&gt;The solution provided by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt; seems to be working but on small table &amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to accomplish two steps &amp;nbsp;before executing calculation&lt;/P&gt;&lt;P&gt;# select all rows for any given day by &lt;STRONG&gt;Start-job-day time&lt;/STRONG&gt; &amp;nbsp;+ &lt;STRONG&gt;Sort by system Seq&lt;/STRONG&gt; à&amp;nbsp; Then calculate column based on Duration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I’m not sure if this is achievable &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 12:39:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-create-job-start-time-based-on-quot-Day-start-time-amp/m-p/2232525#M53276</guid>
      <dc:creator>neees78</dc:creator>
      <dc:date>2021-12-10T12:39:04Z</dc:date>
    </item>
  </channel>
</rss>

