<?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: Current Month Working days calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083374#M47310</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="327068" data-lia-user-login="ThusiHettigama" class="lia-mention lia-mention-user"&gt;ThusiHettigama&lt;/a&gt;&amp;nbsp;Maybe try UTCTODAY instead of TODAY?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/utctoday-function-dax" target="_blank"&gt;UTCTODAY function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 19:02:46 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2021-09-17T19:02:46Z</dc:date>
    <item>
      <title>Current Month Working days calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083353#M47305</link>
      <description>&lt;P class="xmsonormal"&gt;My objective is to calculate the number of working days up until yesterday for the current month.&lt;/P&gt;&lt;P class="xmsonormal"&gt;The below measure is working in the Desktop version. However, once it is published not calculating in the Web version.&lt;/P&gt;&lt;P class="xmsonormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xmsonormal"&gt;dimCalendar is a table in PowerBI. IsCurrentMonth and IsWeekDay are columns in the dimCalendar table.&lt;/P&gt;&lt;P class="xmsonormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xmsonormal"&gt;CurrentMonthworkingDays =&lt;/P&gt;&lt;P class="xmsonormal"&gt;CALCULATE (&lt;/P&gt;&lt;P class="xmsonormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNTROWS (dimCalendar),&lt;/P&gt;&lt;P class="xmsonormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER (&lt;/P&gt;&lt;P class="xmsonormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dimCalendar,&lt;/P&gt;&lt;P class="xmsonormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dimCalendar[Day] &amp;lt;= DAY ( TODAY ()-1 )&lt;/P&gt;&lt;P class="xmsonormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp; dimCalendar[IsCurrentMonth]=1&lt;/P&gt;&lt;P class="xmsonormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp; dimCalendar[IsWeekDay]="True"))&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 18:39:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083353#M47305</guid>
      <dc:creator>ThusiHettigama</dc:creator>
      <dc:date>2021-09-17T18:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Working days calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083374#M47310</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="327068" data-lia-user-login="ThusiHettigama" class="lia-mention lia-mention-user"&gt;ThusiHettigama&lt;/a&gt;&amp;nbsp;Maybe try UTCTODAY instead of TODAY?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/utctoday-function-dax" target="_blank"&gt;UTCTODAY function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 19:02:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083374#M47310</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-17T19:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Working days calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083475#M47319</link>
      <description>&lt;P&gt;Greg,&amp;nbsp; Thanks for suggesting a solution for my issue. However after using UTCTODAY function, the issue is still occuring&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 20:20:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083475#M47319</guid>
      <dc:creator>ThusiHettigama</dc:creator>
      <dc:date>2021-09-17T20:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Working days calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083476#M47320</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="327068" data-lia-user-login="ThusiHettigama" class="lia-mention lia-mention-user"&gt;ThusiHettigama&lt;/a&gt;&amp;nbsp;Hmm, try placing a simple measure like Measure = TODAY() into a Card visualization and see if you get a different value based upon the Desktop or the Service. Wondering if you need to do some kind of TZ conversion.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 20:22:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083476#M47320</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-17T20:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Working days calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083541#M47324</link>
      <description>&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure =&amp;nbsp;DAY(UTCTODAY()-1) is working in the Desktop version and the Service. However when I add COUNTROWS to calculate number of working days from first day of the current month to DAY(UTCTODAY()-1) it's breaking in the Service (published version)&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 22:34:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083541#M47324</guid>
      <dc:creator>ThusiHettigama</dc:creator>
      <dc:date>2021-09-17T22:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Working days calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083621#M47330</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="327068" data-lia-user-login="ThusiHettigama" class="lia-mention lia-mention-user"&gt;ThusiHettigama&lt;/a&gt;&amp;nbsp;Try using a VAR then.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR __Day = DAY(UTCTODAY()-1)&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;COUNTROWS(...)&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 03:01:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2083621#M47330</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-18T03:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Working days calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2086949#M47465</link>
      <description>&lt;P&gt;&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;Thank you very much for the support. Appreciated !!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 19:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Month-Working-days-calculation/m-p/2086949#M47465</guid>
      <dc:creator>ThusiHettigama</dc:creator>
      <dc:date>2021-09-20T19:31:56Z</dc:date>
    </item>
  </channel>
</rss>

