<?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: Dynamic Networkdays function with Dates from Slicer - Working Days in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Networkdays-function-with-Dates-from-Slicer-Working-Days/m-p/3330728#M124805</link>
    <description>&lt;P&gt;Thanks a lot&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;! In the meantime I use three different measures to get the desired calculation.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calendar Last Date=Calculate(Lastdate('Calendar[Date]))&lt;/LI&gt;&lt;LI&gt;Calendar First Date=Calculate(Firstdate('Calendar[Date]))&lt;/LI&gt;&lt;LI&gt;Networkdays([Calendar First Date],[Calendar Last Date],1,Values(Calendar_Holidays[Date]))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Might not be elegant, but worked out as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 06:46:24 GMT</pubDate>
    <dc:creator>PBI-Newbie</dc:creator>
    <dc:date>2023-07-14T06:46:24Z</dc:date>
    <item>
      <title>Dynamic Networkdays function with Dates from Slicer - Working Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Networkdays-function-with-Dates-from-Slicer-Working-Days/m-p/3327622#M124630</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to have a measure that calculates the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Networkdays for a selected time period (chosen from the slicer "Date" from Calendar Table). I have a holiday calendar and NETWORKDAYS worked fine for the whole year, but not for the selected time period of the slicer&lt;/LI&gt;&lt;LI&gt;Calculate "working time elapsed" so the first measure divided by the networkdays of the whole month.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks so much for everyones help!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 14:31:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Networkdays-function-with-Dates-from-Slicer-Working-Days/m-p/3327622#M124630</guid>
      <dc:creator>PBI-Newbie</dc:creator>
      <dc:date>2023-07-12T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Networkdays function with Dates from Slicer - Working Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Networkdays-function-with-Dates-from-Slicer-Working-Days/m-p/3330412#M124790</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="588131" data-lia-user-login="PBI-Newbie" class="lia-mention lia-mention-user"&gt;PBI-Newbie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please have a try.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Networkdays = CALCULATE(
                COUNTROWS('Calendar'),
                FILTER('Calendar',
                    'Calendar'[Date] &amp;gt;= MIN('Date'[Date]) &amp;amp;&amp;amp;
                    'Calendar'[Date] &amp;lt;= MAX('Date'[Date]) &amp;amp;&amp;amp;
                    NOT('Calendar'[IsHoliday])
                )
            )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Working Time Elapsed = [Networkdays] / CALCULATE(
                                                COUNTROWS('Calendar'),
                                                FILTER('Calendar',
                                                    YEAR('Calendar'[Date]) = YEAR(MAX('Date'[Date])) &amp;amp;&amp;amp;
                                                    MONTH('Calendar'[Date]) = MONTH(MAX('Date'[Date])) &amp;amp;&amp;amp;
                                                    NOT('Calendar'[IsHoliday])
                                                )
                                            )&lt;/LI-CODE&gt;
&lt;P&gt;This formula calculates the networkdays of the whole month of the latest date selected in the slicer.&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://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Rongtie&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 02:48:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Networkdays-function-with-Dates-from-Slicer-Working-Days/m-p/3330412#M124790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-14T02:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Networkdays function with Dates from Slicer - Working Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Networkdays-function-with-Dates-from-Slicer-Working-Days/m-p/3330728#M124805</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;! In the meantime I use three different measures to get the desired calculation.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calendar Last Date=Calculate(Lastdate('Calendar[Date]))&lt;/LI&gt;&lt;LI&gt;Calendar First Date=Calculate(Firstdate('Calendar[Date]))&lt;/LI&gt;&lt;LI&gt;Networkdays([Calendar First Date],[Calendar Last Date],1,Values(Calendar_Holidays[Date]))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Might not be elegant, but worked out as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 06:46:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Networkdays-function-with-Dates-from-Slicer-Working-Days/m-p/3330728#M124805</guid>
      <dc:creator>PBI-Newbie</dc:creator>
      <dc:date>2023-07-14T06:46:24Z</dc:date>
    </item>
  </channel>
</rss>

