<?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: Measure to calculate workdays between id_requesteddeliverydate and id_goodsarrivaldate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-workdays-between-id-requesteddeliverydate/m-p/1000650#M12670</link>
    <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/td-p/367362" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/td-p/367362&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 12:53:34 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-03-31T12:53:34Z</dc:date>
    <item>
      <title>Measure to calculate workdays between id_requesteddeliverydate and id_goodsarrivaldate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-workdays-between-id-requesteddeliverydate/m-p/1000641#M12668</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've stumbled across something that i cannot seem to comprehend.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So we have a facttable which includes these columns (purchaseordernumber, purhcaseorderrownumber, id_requesteddeliverydate,id_goodsarrivaldate):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And to this we would like to get a measure that shows the number of working days between id_requesteddeliverydate and id_goodsarrivaldate.&lt;/P&gt;&lt;P&gt;They are each in their own "Dim - Requesteddeliverydate" and "Dim - GoodsArrivalDate" dimensions. Which both includes these columns (with either requested or goodsarrival date in them obviously):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;There is also a "normal" calendar "dim - date" table which is just neutral but includes the same columns as requesteddelivery and goodsarrivaldate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now over to the problem itself, i've been searching here on the forum and online and i just cant get a solution that is working in our case. Is it possible to achieve a measure which calculates the number of working days from the information we have given in these tables or do we need to create a calculated column for this? (pbix file is already massive and we would prefer it to be a measure). Basically i just need to sum the isweekday between these two dates. Or perhaps sum all the isweekday from table goods arrival date up until the id_goodsarrivaldate and then subtract sum of isweekday from table requesteddeliverydate up until the id_requesteddeliverydate and we should get the correct value.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Edit: The Goodsarrivaldate can be before the requesteddate and should then return negative number or 0.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 13:12:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-workdays-between-id-requesteddeliverydate/m-p/1000641#M12668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-31T13:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to calculate workdays between id_requesteddeliverydate and id_goodsarrivaldate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-workdays-between-id-requesteddeliverydate/m-p/1000650#M12670</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/td-p/367362" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/td-p/367362&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 12:53:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-workdays-between-id-requesteddeliverydate/m-p/1000650#M12670</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-31T12:53:34Z</dc:date>
    </item>
  </channel>
</rss>

