<?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: Datediff but excluding if there is a pause in work time in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-but-excluding-if-there-is-a-pause-in-work-time/m-p/4594941#M175959</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="742052" data-lia-user-login="lynnzrae" class="lia-mention lia-mention-user"&gt;lynnzrae&lt;/a&gt;&amp;nbsp; Ensure you have columns for "Submitted for Review", "Decision Rendered", "Project Pause", and "Project Restart".&lt;/P&gt;
&lt;P&gt;Create a calculated column to determine the total number of days the project was paused.&lt;/P&gt;
&lt;P&gt;Subtract the total pause duration from the overall duration between "Submitted for Review" and "Decision Rendered".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;-- Step 1: Calculate the total pause duration&lt;BR /&gt;TotalPauseDuration = &lt;BR /&gt;SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;YourTable,&lt;BR /&gt;NOT(ISBLANK(YourTable[Project Pause]) &amp;amp;&amp;amp; ISBLANK(YourTable[Project Restart]))&lt;BR /&gt;),&lt;BR /&gt;DATEDIFF(YourTable[Project Pause], YourTable[Project Restart], DAY)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;-- Step 2: Calculate the net duration excluding pauses&lt;BR /&gt;NetDuration = &lt;BR /&gt;DATEDIFF(YourTable[Submitted for Review], YourTable[Decision Rendered], DAY) - YourTable[TotalPauseDuration]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details share sample data and exact required data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2025 13:02:11 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-03-04T13:02:11Z</dc:date>
    <item>
      <title>Datediff but excluding if there is a pause in work time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-but-excluding-if-there-is-a-pause-in-work-time/m-p/4594898#M175958</link>
      <description>&lt;P&gt;I would like to calculate the amount of time between Submitted for Review and a Decision being made.&amp;nbsp; However, there are times when there is a pause of work and I want to exclude that time; but the pause doesn't always occur.&amp;nbsp; Can someone please help me create a DAX exploring:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Datediff (in days) between submitted for review and decision rendered excluding the time between project pause and project restart (if there is a pause)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 12:32:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-but-excluding-if-there-is-a-pause-in-work-time/m-p/4594898#M175958</guid>
      <dc:creator>lynnzrae</dc:creator>
      <dc:date>2025-03-04T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff but excluding if there is a pause in work time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-but-excluding-if-there-is-a-pause-in-work-time/m-p/4594941#M175959</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="742052" data-lia-user-login="lynnzrae" class="lia-mention lia-mention-user"&gt;lynnzrae&lt;/a&gt;&amp;nbsp; Ensure you have columns for "Submitted for Review", "Decision Rendered", "Project Pause", and "Project Restart".&lt;/P&gt;
&lt;P&gt;Create a calculated column to determine the total number of days the project was paused.&lt;/P&gt;
&lt;P&gt;Subtract the total pause duration from the overall duration between "Submitted for Review" and "Decision Rendered".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;-- Step 1: Calculate the total pause duration&lt;BR /&gt;TotalPauseDuration = &lt;BR /&gt;SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;YourTable,&lt;BR /&gt;NOT(ISBLANK(YourTable[Project Pause]) &amp;amp;&amp;amp; ISBLANK(YourTable[Project Restart]))&lt;BR /&gt;),&lt;BR /&gt;DATEDIFF(YourTable[Project Pause], YourTable[Project Restart], DAY)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;-- Step 2: Calculate the net duration excluding pauses&lt;BR /&gt;NetDuration = &lt;BR /&gt;DATEDIFF(YourTable[Submitted for Review], YourTable[Decision Rendered], DAY) - YourTable[TotalPauseDuration]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details share sample data and exact required data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 13:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-but-excluding-if-there-is-a-pause-in-work-time/m-p/4594941#M175959</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-03-04T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff but excluding if there is a pause in work time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-but-excluding-if-there-is-a-pause-in-work-time/m-p/4594981#M175961</link>
      <description>&lt;P&gt;I will work on this. thank you.&amp;nbsp; It just dawned on me that we also don't include weekends and federal holidays.&amp;nbsp; Is it possible to somehow pull that in to the caluclation as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 13:26:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-but-excluding-if-there-is-a-pause-in-work-time/m-p/4594981#M175961</guid>
      <dc:creator>lynnzrae</dc:creator>
      <dc:date>2025-03-04T13:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff but excluding if there is a pause in work time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-but-excluding-if-there-is-a-pause-in-work-time/m-p/4594997#M175963</link>
      <description>&lt;P&gt;I ceated the below and received an error message: Too Many arguments were passed to the sum function.&amp;nbsp; The maximum argument count for the funtion is 1.&amp;nbsp; Can you please advise on where I went wrong?&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Period of Paused Review =&lt;/P&gt;&lt;P&gt;SUM(&lt;/P&gt;&lt;P&gt;FILTER(&lt;/P&gt;&lt;P&gt;TPermitBRGCycle,&lt;/P&gt;&lt;P&gt;NOT(ISBLANK(TPermitBRGCycle[CG-BRG-2 Paused; Start Date])&amp;amp;&amp;amp;ISBLANK(TPermitBRGCycle[CG-BRG-2 Restart; Complete Date]))&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;DATEDIFF(TPermitBRGCycle[CG-BRG-2 Paused; Start Date],TPermitBRGCycle[CG-BRG-2 Restart; Complete Date],&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;DAY)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 13:39:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-but-excluding-if-there-is-a-pause-in-work-time/m-p/4594997#M175963</guid>
      <dc:creator>lynnzrae</dc:creator>
      <dc:date>2025-03-04T13:39:48Z</dc:date>
    </item>
  </channel>
</rss>

