<?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: Count number of working days current month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-working-days-current-month/m-p/2699782#M81657</link>
    <description>&lt;P&gt;Fantastic! That did the job. Thanks heaps&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 07:06:57 GMT</pubDate>
    <dc:creator>Rody</dc:creator>
    <dc:date>2022-08-15T07:06:57Z</dc:date>
    <item>
      <title>Count number of working days current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-working-days-current-month/m-p/2699730#M81648</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying the build a sales report and for one metric I would like to show the average tonnes sold per day. In order to do this, I need to embed a dynamic calculation in my calendar table that count the amount of working days (mon-fri) past in the current month. This calculation needs to reset itself every single month. On top of that, I would like to save the total working days in the month when the month has completed.&lt;BR /&gt;&lt;BR /&gt;I cannot wrap my head around this and hope that one of you can help me out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 06:15:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-working-days-current-month/m-p/2699730#M81648</guid>
      <dc:creator>Rody</dc:creator>
      <dc:date>2022-08-15T06:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of working days current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-working-days-current-month/m-p/2699734#M81649</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;[# Working Days] = // calculated column
var Today_ = TODAY()
var CurrentMonth = 'Calendar'[Year-Month]
var Result = 
    SUMX(
        filter(
            'Calendar'
            // This filters to the whole month that
            // is on the current line.
            'Calendar'[Year-Month] = CurrentMonth
            // This one says not to count anything
            // that is in the future.
            &amp;amp;&amp;amp; 'Calendar'[Date] &amp;lt;= Today_
        ),
        'Calendar'[Is working day]
    )
RETURN
    // Add 0 to Result if you want to see
    // 0 instead of BLANKS.
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 06:23:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-working-days-current-month/m-p/2699734#M81649</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-15T06:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of working days current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-working-days-current-month/m-p/2699782#M81657</link>
      <description>&lt;P&gt;Fantastic! That did the job. Thanks heaps&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 07:06:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-working-days-current-month/m-p/2699782#M81657</guid>
      <dc:creator>Rody</dc:creator>
      <dc:date>2022-08-15T07:06:57Z</dc:date>
    </item>
  </channel>
</rss>

