<?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: previous Month MTD In Tabular cube issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/previous-Month-MTD-In-Tabular-cube-issue/m-p/2046110#M45973</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="224202" data-lia-user-login="ShaikRafi" class="lia-mention lia-mention-user"&gt;ShaikRafi&lt;/a&gt;&amp;nbsp;You may find this helpful - &lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Aug 2021 12:01:58 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2021-08-30T12:01:58Z</dc:date>
    <item>
      <title>previous Month MTD In Tabular cube issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/previous-Month-MTD-In-Tabular-cube-issue/m-p/2046090#M45971</link>
      <description>&lt;P&gt;I am writing dax to find the previous month MTD based on the filter selected in the date&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;if I select date Aug 20 2021 in the excel data filter I need mtd for last month(jul1 2021 to jul20 2021)&lt;/P&gt;&lt;P&gt;I tried a few dax but was unable to get (i am get data correct if all selected all dates)&lt;BR /&gt;pmtd = TOTALMTD(SUM(Bets[TURNOVER_SPORTS]),PREVIOUSMONTH('Date'[calendar_date]))&lt;/P&gt;&lt;P&gt;PMTD2 = CALCULATE (&lt;BR /&gt;SUM ( 'Bets'[TURNOVER_SPORTS] ),&lt;BR /&gt;DATEADD (&lt;BR /&gt;FILTER ( DATESMTD ( 'Date'[Date] ), 'Date'[Date] &amp;lt;=MAX('Date'[Date])),&lt;BR /&gt;-1,&lt;BR /&gt;MONTH&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help to get this&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 11:53:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/previous-Month-MTD-In-Tabular-cube-issue/m-p/2046090#M45971</guid>
      <dc:creator>ShaikRafi</dc:creator>
      <dc:date>2021-08-30T11:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: previous Month MTD In Tabular cube issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/previous-Month-MTD-In-Tabular-cube-issue/m-p/2046110#M45973</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="224202" data-lia-user-login="ShaikRafi" class="lia-mention lia-mention-user"&gt;ShaikRafi&lt;/a&gt;&amp;nbsp;You may find this helpful - &lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 12:01:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/previous-Month-MTD-In-Tabular-cube-issue/m-p/2046110#M45973</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-08-30T12:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: previous Month MTD In Tabular cube issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/previous-Month-MTD-In-Tabular-cube-issue/m-p/2046216#M45978</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Obviously this could be improved upon by incorporating Time Intelligence functions, though as a start this should work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PMTD =
CALCULATE (
    SUM ( 'Bets'[TURNOVER_SPORTS] ),
    FILTER (
        ALL ( 'Date' ),
        'Date'[Date]
            &amp;gt;= EOMONTH ( MIN ( 'Date'[Date] ), -2 ) + 1
            &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= EDATE ( MIN ( 'Date'[Date] ), -1 )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 12:49:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/previous-Month-MTD-In-Tabular-cube-issue/m-p/2046216#M45978</guid>
      <dc:creator>Jos_Woolley</dc:creator>
      <dc:date>2021-08-30T12:49:28Z</dc:date>
    </item>
  </channel>
</rss>

