<?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 WTD based on current Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WTD-based-on-current-Month/m-p/1266693#M21248</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I would like to compute a WTD sales measure based on the current month.&lt;/P&gt;&lt;P&gt;For this purpose I have a TRUE/FALSE column in my calendar table.&lt;/P&gt;&lt;P&gt;This filter is used on the report page.&lt;/P&gt;&lt;P&gt;Then I have a WTD measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SalesWTD = 
CALCULATE (
    [Sales],
    FILTER (
        ALL ( 'Calendar' ),
        'Calendar'[Fiscal Year]
            = MAX ( 'Calendar'[Year] )
            &amp;amp;&amp;amp; 'Calendar'[Date]
                &amp;lt;= MAX ( 'Calendar'[Date] )
            &amp;amp;&amp;amp; 'Calendar'[Fiscal Week]
                = MAX ( 'Calendar'[Fiscal Week] )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, this measure is just running if a week is selected. It is not working with a currentMonth filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to adjust this measure to get the WTD sales for the current week? Without a current week measure! I have also a MTD measure in the same matrix&lt;/P&gt;</description>
    <pubDate>Sun, 02 Aug 2020 08:47:25 GMT</pubDate>
    <dc:creator>joshua1990</dc:creator>
    <dc:date>2020-08-02T08:47:25Z</dc:date>
    <item>
      <title>WTD based on current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WTD-based-on-current-Month/m-p/1266693#M21248</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I would like to compute a WTD sales measure based on the current month.&lt;/P&gt;&lt;P&gt;For this purpose I have a TRUE/FALSE column in my calendar table.&lt;/P&gt;&lt;P&gt;This filter is used on the report page.&lt;/P&gt;&lt;P&gt;Then I have a WTD measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SalesWTD = 
CALCULATE (
    [Sales],
    FILTER (
        ALL ( 'Calendar' ),
        'Calendar'[Fiscal Year]
            = MAX ( 'Calendar'[Year] )
            &amp;amp;&amp;amp; 'Calendar'[Date]
                &amp;lt;= MAX ( 'Calendar'[Date] )
            &amp;amp;&amp;amp; 'Calendar'[Fiscal Week]
                = MAX ( 'Calendar'[Fiscal Week] )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, this measure is just running if a week is selected. It is not working with a currentMonth filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to adjust this measure to get the WTD sales for the current week? Without a current week measure! I have also a MTD measure in the same matrix&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 08:47:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WTD-based-on-current-Month/m-p/1266693#M21248</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2020-08-02T08:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: WTD based on current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WTD-based-on-current-Month/m-p/1266740#M21254</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you share your table or matrix where you try to use this formula?&lt;BR /&gt;&lt;BR /&gt;You mentioned about Report Page filter? which measure is going in there?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark this post as a solution, this will help others!.&lt;/P&gt;&lt;P&gt;Click on the Thumbs-Up icon on the right if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;YouTube, &lt;/A&gt;&lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 10:31:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WTD-based-on-current-Month/m-p/1266740#M21254</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-08-02T10:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: WTD based on current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WTD-based-on-current-Month/m-p/1266782#M21257</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;Thanks for your support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The matrix has this structure:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Area&lt;/TD&gt;&lt;TD&gt;Sales WTD&lt;/TD&gt;&lt;TD&gt;Sales MTD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;TD&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;650&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;TD&gt;357&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "IsCurrentMonth" measure is used to filter the whole page for the current month.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 11:42:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WTD-based-on-current-Month/m-p/1266782#M21257</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2020-08-02T11:42:08Z</dc:date>
    </item>
  </channel>
</rss>

