<?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: Summarizing Continuous Date Ranges in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Continuous-Date-Ranges/m-p/2201609#M51691</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="270078" data-lia-user-login="maart666" class="lia-mention lia-mention-user"&gt;maart666&lt;/a&gt; , Using this blog, you should get new start and new end date, when there is split &lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Power-BI-Continuous-Streak-With-One-Day-Break/ba-p/1290346" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Power-BI-Continuous-Streak-With-One-Day-Break/ba-p/1290346&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now using the distinct of that using summarize , calculate work day using calendar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sumx(Addcolumns(Summarize(Table, Table[Employee], Table[New Start], New[End Date]) , "_1", COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR([New Start Date],[New End Date]),"WorkDay", if(WEEKDAY([Date],2) &amp;lt;6,1,0)),[WorkDay] =1)) ), [_1])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also refer&lt;/P&gt;
&lt;P&gt;How to calculate Business Days/ Workdays, with or without date table: &lt;A href="https://youtu.be/Qv4wT8_P-AA" target="_blank"&gt;https://youtu.be/Qv4wT8_P-AA&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 13:34:21 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-11-22T13:34:21Z</dc:date>
    <item>
      <title>Summarizing Continuous Date Ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Continuous-Date-Ranges/m-p/2201225#M51677</link>
      <description>&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;&lt;DIV class="dePhmb"&gt;&lt;DIV class="eyKpYb"&gt;&lt;DIV class="J0lOec"&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I have a base with employee absences.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;After returning to work after 30 continuous absences, the employee must be sent for an examination.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Some employees have several lines with absences, if the date of the beginning of the next absence is equal to the date of the end of the previous absence + 1, I have to sum up such absences.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="J0lOec"&gt;&lt;P&gt;unfortunately, Saturdays and Sundays are sometimes subtracted in these ranges:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, the table in the report should only show employees who have had a continuous absence of 30 days or more.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/d0a3tut7gat44es/tests%20%283%29.pbix?dl=0" target="_self"&gt;I attach the file in PBI.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Nov 2021 10:08:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Continuous-Date-Ranges/m-p/2201225#M51677</guid>
      <dc:creator>maart666</dc:creator>
      <dc:date>2021-11-22T10:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing Continuous Date Ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Continuous-Date-Ranges/m-p/2201609#M51691</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="270078" data-lia-user-login="maart666" class="lia-mention lia-mention-user"&gt;maart666&lt;/a&gt; , Using this blog, you should get new start and new end date, when there is split &lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Power-BI-Continuous-Streak-With-One-Day-Break/ba-p/1290346" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Power-BI-Continuous-Streak-With-One-Day-Break/ba-p/1290346&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now using the distinct of that using summarize , calculate work day using calendar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sumx(Addcolumns(Summarize(Table, Table[Employee], Table[New Start], New[End Date]) , "_1", COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR([New Start Date],[New End Date]),"WorkDay", if(WEEKDAY([Date],2) &amp;lt;6,1,0)),[WorkDay] =1)) ), [_1])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also refer&lt;/P&gt;
&lt;P&gt;How to calculate Business Days/ Workdays, with or without date table: &lt;A href="https://youtu.be/Qv4wT8_P-AA" target="_blank"&gt;https://youtu.be/Qv4wT8_P-AA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 13:34:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Continuous-Date-Ranges/m-p/2201609#M51691</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-11-22T13:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing Continuous Date Ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Continuous-Date-Ranges/m-p/2202068#M51707</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;amitchandak!&lt;/P&gt;&lt;P&gt;for the first part works perfekt!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when&amp;nbsp;but are you able to help with the solution when the days when absences are not entered as a continuous range, but only for working days. The range starts on Monday and ends on Friday.&lt;BR /&gt;So as a continuity I have to treat the Friday date and the date of the next Monday.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 17:49:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Continuous-Date-Ranges/m-p/2202068#M51707</guid>
      <dc:creator>maart666</dc:creator>
      <dc:date>2021-11-22T17:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing Continuous Date Ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Continuous-Date-Ranges/m-p/2203616#M51770</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;amitchandak,&amp;nbsp;&lt;BR /&gt;I was able to adjust your solution to my needs.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 11:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Continuous-Date-Ranges/m-p/2203616#M51770</guid>
      <dc:creator>maart666</dc:creator>
      <dc:date>2021-11-23T11:43:01Z</dc:date>
    </item>
  </channel>
</rss>

