<?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: Calculate working days for a month (excluding Holidays and Weekend) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-working-days-for-a-month-excluding-Holidays-and/m-p/1556775#M30852</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To further explain, below are the current columns in my calendar table.&amp;nbsp; Also,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have a measure in table 2 other than the Calendar table (relationship exists between both of these tables) and built a measure which is Total Days in Month = DISTINCTCOUNTNOBLANK('Table 2 - Metrics'[DateReceived].[Day]). This gives me total calendar days for a particular month. However, the challenge is to only count Working days (excluding holidays and Weekends). There is a relationship via date between the Holidays table and the Calendar table as well. Is there any simple measure to apply? Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 13:58:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-17T13:58:26Z</dc:date>
    <item>
      <title>Calculate working days for a month (excluding Holidays and Weekend)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-working-days-for-a-month-excluding-Holidays-and/m-p/1554371#M30763</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate &lt;STRONG&gt;working days&lt;/STRONG&gt; for a month in the calendar Table and have that measure applied to another Table metrics in PowerBI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Holidays are listed in a separate table from the Calendar Table. The Calendar Table already has a column -&lt;STRONG&gt; Count of Working days&lt;/STRONG&gt; (excluding weekends).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help how to further exclude holidays in this C&lt;STRONG&gt;ount of working days? thanks!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 16:24:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-working-days-for-a-month-excluding-Holidays-and/m-p/1554371#M30763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-16T16:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate working days for a month (excluding Holidays and Weekend)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-working-days-for-a-month-excluding-Holidays-and/m-p/1554389#M30764</link>
      <description>&lt;P&gt;I wrote something for this once:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/m-p/367362#M109" target="_blank"&gt;Net Work Days (powerbi.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is an improved version in my book DAX Cookbook, you can get it here:&amp;nbsp;&lt;A href="https://github.com/gdeckler/DAXCookbook" target="_blank"&gt;GitHub - gdeckler/DAXCookbook&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Recipe 10 in Chapter 2&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 16:29:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-working-days-for-a-month-excluding-Holidays-and/m-p/1554389#M30764</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-12-16T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate working days for a month (excluding Holidays and Weekend)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-working-days-for-a-month-excluding-Holidays-and/m-p/1556775#M30852</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To further explain, below are the current columns in my calendar table.&amp;nbsp; Also,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have a measure in table 2 other than the Calendar table (relationship exists between both of these tables) and built a measure which is Total Days in Month = DISTINCTCOUNTNOBLANK('Table 2 - Metrics'[DateReceived].[Day]). This gives me total calendar days for a particular month. However, the challenge is to only count Working days (excluding holidays and Weekends). There is a relationship via date between the Holidays table and the Calendar table as well. Is there any simple measure to apply? Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 13:58:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-working-days-for-a-month-excluding-Holidays-and/m-p/1556775#M30852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-17T13:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate working days for a month (excluding Holidays and Weekend)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-working-days-for-a-month-excluding-Holidays-and/m-p/1556859#M30856</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;So I would do something along the lines of the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
  VAR __Table = FILTER('Calendar',[Working Days]=1)
RETURN
  COUNTROWS(DISTINCT(EXCEPT(__Table,'Holidays')))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Dec 2020 14:43:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-working-days-for-a-month-excluding-Holidays-and/m-p/1556859#M30856</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-12-17T14:43:52Z</dc:date>
    </item>
  </channel>
</rss>

