<?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 Last month working MTD vs This month working MTD. HELP in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-month-working-MTD-vs-This-month-working-MTD-HELP/m-p/3057733#M105540</link>
    <description>&lt;P&gt;Good Morning&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compare a count of a column this month going off working days vs last month's working days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following community post to get the working day number next to the calendar dates so, for example, this month the 1st working day is the 1st and last month the 1st working day was the 2nd both have a 1 next to them.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Same-working-day-last-month/m-p/2714230" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Same-working-day-last-month/m-p/2714230&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the counts to show vs the date field but I want this to show against a department without the date fields on the page.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But instead, I would like it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have joined the calendar table to my data table but I cannot figure out how to only to count the files opened between the first working day and the current working day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help would be appreciated&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 12:05:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-02T12:05:38Z</dc:date>
    <item>
      <title>Last month working MTD vs This month working MTD. HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-month-working-MTD-vs-This-month-working-MTD-HELP/m-p/3057733#M105540</link>
      <description>&lt;P&gt;Good Morning&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compare a count of a column this month going off working days vs last month's working days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following community post to get the working day number next to the calendar dates so, for example, this month the 1st working day is the 1st and last month the 1st working day was the 2nd both have a 1 next to them.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Same-working-day-last-month/m-p/2714230" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Same-working-day-last-month/m-p/2714230&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the counts to show vs the date field but I want this to show against a department without the date fields on the page.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But instead, I would like it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have joined the calendar table to my data table but I cannot figure out how to only to count the files opened between the first working day and the current working day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help would be appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 12:05:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-month-working-MTD-vs-This-month-working-MTD-HELP/m-p/3057733#M105540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-02T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Last month working MTD vs This month working MTD. HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-month-working-MTD-vs-This-month-working-MTD-HELP/m-p/3057906#M105554</link>
      <description>&lt;P&gt;Solved it, if you need this add the following to your calendar table:&lt;/P&gt;&lt;P&gt;WorkdaySort =&lt;BR /&gt;VAR _sort =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNT ( 'Calendar'[Date] ),&lt;BR /&gt;FILTER (&lt;BR /&gt;'Calendar',&lt;BR /&gt;'Calendar'[Month] = EARLIER ( 'Calendar'[Month] )&lt;BR /&gt;&amp;amp;&amp;amp; 'Calendar'[Date] &amp;lt;= EARLIER ( 'Calendar'[Date] )&lt;BR /&gt;&amp;amp;&amp;amp; 'Calendar'[Year] = EARLIER( 'Calendar'[Year] )&lt;BR /&gt;&amp;amp;&amp;amp; NOT 'Calendar'[Day of Week] IN { 5, 6 }&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR _result =&lt;BR /&gt;IF ( NOT 'Calendar'[Day of Week] IN { 5, 6 }, _sort )&lt;BR /&gt;RETURN&lt;BR /&gt;_result&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Then the following as your measure:&lt;/P&gt;&lt;P&gt;Last Month MTD =&lt;BR /&gt;VAR _MINworkday_sort =&lt;BR /&gt;CALCULATE ( MIN( 'Calendar'[WorkdaySort] ), 'Calendar'[Date] = EOMONTH(TODAY(),0)+1 )&lt;BR /&gt;VAR _MAXworkday_sort =&lt;BR /&gt;CALCULATE ( MAX( 'Calendar'[WorkdaySort] ), 'Calendar'[Date] = TODAY() )&lt;BR /&gt;return&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNT(Matters[cMatter]),&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL('Calendar'),&lt;BR /&gt;'Calendar'[Year] = YEAR(TODAY())&lt;BR /&gt;&amp;amp;&amp;amp; 'Calendar'[Month] = MONTH(TODAY())-1&lt;BR /&gt;&amp;amp;&amp;amp; 'Calendar'[WorkdaySort] &amp;gt;= _MINworkday_sort&lt;BR /&gt;&amp;amp;&amp;amp; 'Calendar'[WorkdaySort] &amp;lt;= _MAXworkday_sort&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the count to your measure or sum or count and it will pull in your last month-to-date working days aggregation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 13:23:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-month-working-MTD-vs-This-month-working-MTD-HELP/m-p/3057906#M105554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-02T13:23:30Z</dc:date>
    </item>
  </channel>
</rss>

