<?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: Date diff Working Days to Today with filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2732919#M83733</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331333" data-lia-user-login="ctedesco3307" class="lia-mention lia-mention-user"&gt;ctedesco3307&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;A new column &lt;/P&gt;
&lt;P&gt;networkdays([Start Date], Today(),1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c" target="_blank"&gt;https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2022 14:50:47 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-08-29T14:50:47Z</dc:date>
    <item>
      <title>Date diff Working Days to Today with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2732794#M83724</link>
      <description>&lt;P&gt;I have a table that has all the working days identifed for a project between the start and end date. I need a measure to add up all the working days for each project from Start date to today, Thanks in advance&amp;nbsp;&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;</description>
      <pubDate>Mon, 29 Aug 2022 14:04:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2732794#M83724</guid>
      <dc:creator>ctedesco3307</dc:creator>
      <dc:date>2022-08-29T14:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date diff Working Days to Today with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2732919#M83733</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331333" data-lia-user-login="ctedesco3307" class="lia-mention lia-mention-user"&gt;ctedesco3307&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;A new column &lt;/P&gt;
&lt;P&gt;networkdays([Start Date], Today(),1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c" target="_blank"&gt;https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 14:50:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2732919#M83733</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-29T14:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date diff Working Days to Today with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2732984#M83739</link>
      <description>&lt;P&gt;&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; thank you but the function needs to sum the workingday column in the table if workingday = 1&amp;nbsp; -- not just omit saturday and sunday - we have company holidays also&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2732984#M83739</guid>
      <dc:creator>ctedesco3307</dc:creator>
      <dc:date>2022-08-29T15:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date diff Working Days to Today with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2734157#M83814</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331333" data-lia-user-login="ctedesco3307" class="lia-mention lia-mention-user"&gt;ctedesco3307&lt;/a&gt; , Please refer blog I shared complete information on how to use the holiday calendar &lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c" target="_blank"&gt;https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:19:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2734157#M83814</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-30T06:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date diff Working Days to Today with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2740104#M84174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331333" data-lia-user-login="ctedesco3307" class="lia-mention lia-mention-user"&gt;ctedesco3307&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to try this code to create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _MINDATE = MIN(MAX('Table'[End Date]),TODAY())
VAR _COUNT = CALCULATE(SUM('Table'[Working Day]),FILTER('Table','Table'[MSSContractDay]&amp;lt;=_MINDATE))+0
RETURN
_COUNT&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 08:24:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/2740104#M84174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-01T08:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date diff Working Days to Today with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/3506513#M134519</link>
      <description>&lt;P&gt;hi Rico,&lt;/P&gt;&lt;P&gt;am using your DAX statement like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DaysDiff =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_MINDATE&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'KPI Delivery'&lt;/SPAN&gt;&lt;SPAN&gt;[InvoiceDate]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_COUNT&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'KPI Delivery'&lt;/SPAN&gt;&lt;SPAN&gt;[InvoiceWeekendDay]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'KPI Delivery'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'KPI Delivery'&lt;/SPAN&gt;&lt;SPAN&gt;[InvoiceDate]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;_MINDATE&lt;/SPAN&gt;&lt;SPAN&gt;))+&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;_COUNT&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The measure seems to be working but as soon as i add the measure to a visual i get this error message:&amp;nbsp;&lt;BR /&gt;MdxScript(Model (5,29) Calculation error in measure TABLE [DaysDiff]; the function SUM cannot work with values of type string.&amp;nbsp; Can you help. thnx!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Oct 2023 07:36:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/3506513#M134519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-31T07:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date diff Working Days to Today with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/3506515#M134520</link>
      <description>&lt;P&gt;hi Rico,&lt;/P&gt;&lt;P&gt;forget about my question, found the issue and solved it.&lt;/P&gt;&lt;P&gt;The measure is working!&lt;/P&gt;&lt;P&gt;thnx!!!!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 07:42:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-diff-Working-Days-to-Today-with-filter/m-p/3506515#M134520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-31T07:42:03Z</dc:date>
    </item>
  </channel>
</rss>

