<?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 Calculated Column for Azure DevOps Completed Work Field in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-for-Azure-DevOps-Completed-Work-Field/m-p/1977833#M43577</link>
    <description>&lt;P&gt;I would like to track the number of hours per day I am logging on a work item in Azure DevOps. My strategy is to create a calculated column that tracks the difference in the amount of work between a date and the previous day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of the data I am using from a table called 'Tasks':&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Work Item Id&lt;/TD&gt;&lt;TD&gt;Completed Work&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Date Previous&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;7/23/2021&lt;/TD&gt;&lt;TD&gt;7/22/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2.5&lt;/TD&gt;&lt;TD&gt;7/24/2021&lt;/TD&gt;&lt;TD&gt;7/23/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;7/25/2021&lt;/TD&gt;&lt;TD&gt;7/24/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a calculated column for the previous day that uses the following code (per &lt;A href="https://docs.microsoft.com/en-us/azure/devops/report/powerbi/create-timeinstate-report?view=azure-devops#add-date-previous" target="_self"&gt;here&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date Previous =
CALCULATE (
    MAX ( 'Tasks'[Date] ),
        ALLEXCEPT( 'Tasks', 'Tasks'[Work Item Id] ),
        'Tasks'[Date] &amp;lt; EARLIER ( 'Tasks'[Date] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I now would like to create a calculated column that shows the difference in completed work from the previous date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any ideas or tips to help me move in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jul 2021 20:53:50 GMT</pubDate>
    <dc:creator>GregAtCatapult</dc:creator>
    <dc:date>2021-07-25T20:53:50Z</dc:date>
    <item>
      <title>Calculated Column for Azure DevOps Completed Work Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-for-Azure-DevOps-Completed-Work-Field/m-p/1977833#M43577</link>
      <description>&lt;P&gt;I would like to track the number of hours per day I am logging on a work item in Azure DevOps. My strategy is to create a calculated column that tracks the difference in the amount of work between a date and the previous day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of the data I am using from a table called 'Tasks':&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Work Item Id&lt;/TD&gt;&lt;TD&gt;Completed Work&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Date Previous&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;7/23/2021&lt;/TD&gt;&lt;TD&gt;7/22/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2.5&lt;/TD&gt;&lt;TD&gt;7/24/2021&lt;/TD&gt;&lt;TD&gt;7/23/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;7/25/2021&lt;/TD&gt;&lt;TD&gt;7/24/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a calculated column for the previous day that uses the following code (per &lt;A href="https://docs.microsoft.com/en-us/azure/devops/report/powerbi/create-timeinstate-report?view=azure-devops#add-date-previous" target="_self"&gt;here&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date Previous =
CALCULATE (
    MAX ( 'Tasks'[Date] ),
        ALLEXCEPT( 'Tasks', 'Tasks'[Work Item Id] ),
        'Tasks'[Date] &amp;lt; EARLIER ( 'Tasks'[Date] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I now would like to create a calculated column that shows the difference in completed work from the previous date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any ideas or tips to help me move in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 20:53:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-for-Azure-DevOps-Completed-Work-Field/m-p/1977833#M43577</guid>
      <dc:creator>GregAtCatapult</dc:creator>
      <dc:date>2021-07-25T20:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column for Azure DevOps Completed Work Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-for-Azure-DevOps-Completed-Work-Field/m-p/1979829#M43626</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="186292" data-lia-user-login="GregAtCatapult" class="lia-mention lia-mention-user"&gt;GregAtCatapult&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You can create a measure to calculate the work completed on previous day and can subtract it form the current day.&lt;BR /&gt;PrevDaywork= CALCULATE(SUM(Tasks[Completed Work]), PREVIOUSDAY( Tasks[Date]))&lt;BR /&gt;&lt;BR /&gt;Diff=&amp;nbsp; CALCULATE(SUM(Tasks[Completed Work])-&amp;nbsp;PrevDaywork&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this is what you need.&lt;BR /&gt;&lt;EM&gt;If it answers your question, mark it as a solution.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 15:02:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-for-Azure-DevOps-Completed-Work-Field/m-p/1979829#M43626</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-07-26T15:02:14Z</dc:date>
    </item>
  </channel>
</rss>

