<?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 without weekends still doesn't work... in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEDIFF-without-weekends-still-doesn-t-work/m-p/1836241#M39103</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , If you these two columns in one table and you date table with workday(1/0)&lt;/P&gt;
&lt;P&gt;A new column =&lt;/P&gt;
&lt;P&gt;sumx(filter('Date', 'Date'[Date] &amp;gt;= Table[Start engineering] &amp;amp;&amp;amp; 'Date'[Date] &amp;gt;= Table[Engineering ready]),[Work Day])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to file below, Where on 2nd page work day diff as measure form 2 tables. But same is true for one able&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also discussed it here, if this can help: 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>Tue, 11 May 2021 13:27:17 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-05-11T13:27:17Z</dc:date>
    <item>
      <title>DATEDIFF without weekends still doesn't work...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEDIFF-without-weekends-still-doesn-t-work/m-p/1836148#M39096</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read a lot of solutions about how to exlude weekends in a datediff formula, but i did not work for me.&lt;/P&gt;&lt;P&gt;My formula is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF([Order uitgewerkt] = "Yes",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATEDIFF([Order in],[Engineering ready],DAY)&amp;lt;0,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;0,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATEDIFF([Order in],[Start engineering],DAY)-1),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATEDIFF([Order in],TODAY(),DAY)-1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in al the three DATEDIFF i need to exlude weekends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;replied a few days ago with this answer how to solve this:&amp;nbsp;&lt;SPAN&gt;COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(Table[Start Date],Table[End Date]),"WorkDay", if(WEEKDAY([Date],2) &amp;lt;6,1,0)),[WorkDay] =1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but this doesn't work for me because some of my date rows are empty so the formula gives a error that CALENDAR can't be empty and i don't kwow how to solve this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I already have a column that says if a day is a workday or a weekend. I tried to put in a filter before the datediff but that doesn't work either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone knows how to solve this? i tried everyting i could for a week now but i can't get the right formula that exclude weekends unfortunately..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 12:46:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEDIFF-without-weekends-still-doesn-t-work/m-p/1836148#M39096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-11T12:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: DATEDIFF without weekends still doesn't work...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEDIFF-without-weekends-still-doesn-t-work/m-p/1836241#M39103</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , If you these two columns in one table and you date table with workday(1/0)&lt;/P&gt;
&lt;P&gt;A new column =&lt;/P&gt;
&lt;P&gt;sumx(filter('Date', 'Date'[Date] &amp;gt;= Table[Start engineering] &amp;amp;&amp;amp; 'Date'[Date] &amp;gt;= Table[Engineering ready]),[Work Day])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to file below, Where on 2nd page work day diff as measure form 2 tables. But same is true for one able&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also discussed it here, if this can help: 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>Tue, 11 May 2021 13:27:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEDIFF-without-weekends-still-doesn-t-work/m-p/1836241#M39103</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-11T13:27:17Z</dc:date>
    </item>
  </channel>
</rss>

