<?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: Workdays in current Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174350#M165792</link>
    <description>&lt;P&gt;Thank you, but unfortunately NETWORKDAYS is not an option in my version of Power BI &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 12:54:39 GMT</pubDate>
    <dc:creator>EmWy24</dc:creator>
    <dc:date>2024-09-25T12:54:39Z</dc:date>
    <item>
      <title>Workdays in current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174332#M165789</link>
      <description>&lt;P&gt;I am trying to work out the number of work days in the current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a formula which works to show number of days in month, but how do I change this to just show weekdays?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Sep 2024 12:45:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174332#M165789</guid>
      <dc:creator>EmWy24</dc:creator>
      <dc:date>2024-09-25T12:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Workdays in current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174347#M165791</link>
      <description>&lt;P&gt;There's a function called NETWORKDAYS.&lt;BR /&gt;&lt;BR /&gt;These are the parameters&amp;nbsp;&lt;SPAN&gt;NETWORKDAYS(&amp;lt;start_date&amp;gt;, &amp;lt;end_date&amp;gt;[, &amp;lt;weekend&amp;gt;, &amp;lt;holidays&amp;gt;]). By default it excludes weekends. You just need to do something like this:&lt;BR /&gt;&lt;BR /&gt;NETWORKDAYS(&amp;lt;StartDateOfMonth&amp;gt;,&amp;lt;EndDateOfMonth&amp;gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 12:52:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174347#M165791</guid>
      <dc:creator>pbiuseruk</dc:creator>
      <dc:date>2024-09-25T12:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Workdays in current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174350#M165792</link>
      <description>&lt;P&gt;Thank you, but unfortunately NETWORKDAYS is not an option in my version of Power BI &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 12:54:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174350#M165792</guid>
      <dc:creator>EmWy24</dc:creator>
      <dc:date>2024-09-25T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Workdays in current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174370#M165793</link>
      <description>&lt;P&gt;Ahh, to be honest, I'd strongly recommend updating it or asking your admins to because that's crazy.&lt;BR /&gt;&lt;BR /&gt;But if you can't then another way to do this (although I'm not the biggest fan of this), is to make a day column in Power Query (really simple to do - just select the date field in your calender table, then fo to add columns tab at the top, select the dates dropdown on the top right and then select Day).&lt;BR /&gt;&lt;BR /&gt;^This will add a Day field to the calender table like Monday, Tuesday, etc..&lt;BR /&gt;&lt;BR /&gt;Then in Power Query, make a conditional column and then say If Monday, then Weekday, If Tuesday, then Weekday, etc...&lt;BR /&gt;&lt;BR /&gt;Then in your model, make sure that you do it in a way where you link the calendar table to any dates fields in other tables and then you'll be able to use that column as a filter in your pages.&lt;BR /&gt;&lt;BR /&gt;Hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 13:00:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174370#M165793</guid>
      <dc:creator>pbiuseruk</dc:creator>
      <dc:date>2024-09-25T13:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Workdays in current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174377#M165794</link>
      <description>&lt;P&gt;IF(WEEKDAY([Date], 2) &amp;gt;= 6, TRUE(), FALSE())&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 13:01:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4174377#M165794</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-09-25T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Workdays in current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4175028#M165807</link>
      <description>&lt;P&gt;o calculate the number of workdays (weekdays) in the current month in Power BI, you can use DAX to account for weekdays &lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;without needing the NETWORKDAYS function.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Here's a DAX formula that calculates the number of weekdays in the current month:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;DAX&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Copy code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Workdays_CurrentMonth = VAR StartOfMonth = DATE(YEAR(TODAY()), MONTH(TODAY()), 1) VAR EndOfMonth = EOMONTH(TODAY(), 0) VAR DaysList = GENERATESERIES(StartOfMonth, EndOfMonth, 1) RETURN COUNTX( FILTER( DaysList, WEEKDAY([Value], 2) &amp;lt;= 5 -- This filters out weekends (Saturday and Sunday) ), [Value] )&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;H3&gt;Explanation:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;StartOfMonth calculates the first day of the current month.&lt;/LI&gt;&lt;LI&gt;EndOfMonth uses EOMONTH to get the last day of the current month.&lt;/LI&gt;&lt;LI&gt;GENERATESERIES creates a list of all dates between StartOfMonth and EndOfMonth.&lt;/LI&gt;&lt;LI&gt;WEEKDAY([Value], 2) checks if the day is a weekday (Monday to Friday), where 2 means the week starts on Monday.&lt;/LI&gt;&lt;LI&gt;FILTER is used to exclude weekends.&lt;/LI&gt;&lt;LI&gt;Finally, COUNTX counts the number of weekdays.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This formula will return the number of workdays in the current month.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Sep 2024 15:13:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4175028#M165807</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-09-25T15:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Workdays in current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4176600#M165833</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="812490" data-lia-user-login="EmWy24" class="lia-mention lia-mention-user"&gt;EmWy24&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;It's not complicated to realize this I'll try to use the following DAX in a newly created date table to help you find the number of days worked in each month.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Workdays = 
CALCULATE(
    COUNTROWS('DateTable'),
    'DateTable'[Date] &amp;gt;= DATE(YEAR(TODAY()), MONTH(TODAY()), 1),
    'DateTable'[Date] &amp;lt;= EOMONTH(TODAY(), 0),
    WEEKDAY('DateTable'[Date], 2) &amp;lt;= 5
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Below is the community Blog on how to find the number of working days, one of the real Power query to filter, I hope to help your question, if you have further questions, you can feel free to contact me, I will be the first time to reply when I receive your message!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com//t5/Community-Blog/Calculate-the-working-days-between-two-dates-excluding-weekends/ba-p/2727453" target="_blank"&gt;Calculate the working days between two dates exclu... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 05:10:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4176600#M165833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-26T05:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Workdays in current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4177220#M165882</link>
      <description>&lt;P&gt;Thank you for the response. Unfortunately this won't work for me, as I don't have a date table and can't have any tables. My source is through Analysis Services.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 08:33:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4177220#M165882</guid>
      <dc:creator>EmWy24</dc:creator>
      <dc:date>2024-09-26T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Workdays in current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4177306#M165886</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try this - just tried it and it works for me.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CM_WorkdaysInCurrentMonth = 
var start_of_current_month = EOMONTH(today(),-1) + 1
var end_of_current_month = EOMONTH(today(),0)
var calender_month_days = Filter(CALENDAR(start_of_current_month,end_of_current_month), WEEKDAY([Date],2)&amp;lt;6)
RETURN
COUNTROWS(calender_month_days)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Sep 2024 09:07:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Workdays-in-current-Month/m-p/4177306#M165886</guid>
      <dc:creator>pbiuseruk</dc:creator>
      <dc:date>2024-09-26T09:07:10Z</dc:date>
    </item>
  </channel>
</rss>

