<?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: MTD FOR PREVIOUS PERIOD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547781#M72002</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Please see example on page 2 of the attached. (PMTD)Here there are two measures to obtain prev mtd.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link with example'&lt;/P&gt;&lt;P&gt;&lt;A title="Prev MTD" href="https://drive.google.com/file/d/1xS9kCnRn-y8Q-6wx5nLdZKeX9RgVURp4/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1xS9kCnRn-y8Q-6wx5nLdZKeX9RgVURp4/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PMTD = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[amount]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATESMTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dates[Date]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;DATES[Date]&lt;/SPAN&gt;&lt;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lt;DIV&gt;&lt;SPAN&gt;Then look at result:(Scroll down) and the measures are blank until Feb 1 2020&amp;nbsp; =9&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Feb 2 2020= 18&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To answere your question it keeps track of the exact day for calculating the result.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Please consider marking as solution if this works for you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 30 May 2022 12:19:52 GMT</pubDate>
    <dc:creator>Whitewater100</dc:creator>
    <dc:date>2022-05-30T12:19:52Z</dc:date>
    <item>
      <title>MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545584#M71878</link>
      <description>&lt;P&gt;I would like to be able to compare my MTD sales with any previous month for the same date range. Currently, I can only see MTD sales for the current month. When a previous month is chosen, the Total sales for that month is shown instead of the total sales for the same period in the current month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example, if the current MTD is the 1-28th of May, I would like to be able to see &lt;STRONG&gt;the total sales&lt;/STRONG&gt; for the same period for the 1st-28th of January.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greatly appreciate it if someone can help me with this. Thank you in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 21:40:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545584#M71878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-28T21:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545589#M71879</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;calculate((yourmeasure), sameperiodlastyear(date[Date]=&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 21:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545589#M71879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-28T21:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545619#M71881</link>
      <description>&lt;P&gt;Does not seem to work....&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 22:19:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545619#M71881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-28T22:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545621#M71882</link>
      <description>&lt;P&gt;Do you have a date table ?&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 22:22:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545621#M71882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-28T22:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545833#M71896</link>
      <description>&lt;P&gt;Yes I do have a date table&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2022 06:38:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545833#M71896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-29T06:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545916#M71909</link>
      <description>&lt;P&gt;Hi, how are you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should create a measure with this formula to see the before value you want:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, put the columns on a table visual and you gonna have this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice I created the slicer visual too.&lt;/P&gt;&lt;P&gt;So, filter the visual according your preference and remove the column "VALUE" if you want:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REGARDS!&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2022 10:15:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545916#M71909</guid>
      <dc:creator>HenriqueReis</dc:creator>
      <dc:date>2022-05-29T10:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545944#M71910</link>
      <description>&lt;P&gt;Unfortunately it has not. But thanks anyways.&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2022 11:51:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545944#M71910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-29T11:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545953#M71913</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can tey something like this&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Rolling-Cumulative-Total-Over-last-3-Year-based-on-Selected-Year/m-p/2544240#M71758" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Rolling-Cumulative-Total-Over-last-3-Year-based-on-Selected-Year/m-p/2544240#M71758&lt;/A&gt;&lt;/P&gt;&lt;P&gt;basically you need a previous date table which is just a copy of the existing date table. Then set the inactive relationship as indicated. You need to change the period of PARALLELPERIOD to 1 month&lt;/P&gt;&lt;P&gt;please let me know if you need any further help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2022 11:57:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545953#M71913</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-29T11:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545956#M71914</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;That's great if you have a separate Date Table on the "Date" field, marked as a Date Table and it has a relationship to your fact table with&amp;nbsp;&lt;/P&gt;&lt;P&gt;your sales figures. For this example I'll call the Date Table "Dates". I'll call your fact table "Sales".&lt;/P&gt;&lt;P&gt;MTD Sales = CALCULATE([Total Sales], DATESMTD(Dates[Date])&lt;/P&gt;&lt;P&gt;PMTD = CALCULATE([Total Sales], DATEADD(FILTER(DATESMTD(Dates[Date]), DATES[Date]&amp;lt;TODAY()), -1,MONTH))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will give you MTD to the day for comparison purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2022 12:03:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2545956#M71914</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-29T12:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547164#M71969</link>
      <description>&lt;P&gt;What do you mean change the period of PARALLELPERIOD to 1 month? Could not find it in the link you shared. Thanks once again.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 08:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547164#M71969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-30T08:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547175#M71971</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My mistake. I mean DATESINPERIOD and to change the period to -2 month&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DATESINPERIOD ( 'PreviousDate'[Date], ReferenceDate, -2, MONTH )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 30 May 2022 08:36:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547175#M71971</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-30T08:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547255#M71974</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/394540" target="_blank" rel="noopener"&gt;@ganenthra94&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the formula modified for your case. You need also to use the month name in the visual instead of the year (from the pevious date table). However this won't work with my samp[el file as it's data has only monthly ganularity. So please try with your data.&lt;/P&gt;&lt;PRE&gt;MTD =
VAR NumOfMonths = -2
VAR ReferenceDate =
    MAX ( 'Date'[Date] )
VAR PreviousDates =
    FILTER (
        DATESINPERIOD ( 'PreviousDate'[Date], ReferenceDate, NumOfMonths, MONTH ),
        DAY ( 'PreviousDate'[Date] ) &amp;lt;= DAY ( ReferenceDate )
    )
VAR Result =
    CALCULATE (
        SUM ( 'Sales'[Salesl] ),
        REMOVEFILTERS ( 'Date' ),
        KEEPFILTERS ( PreviousDates ),
        USERELATIONSHIP ( 'PreviousDate'[Date], 'Date'[Date] )
    )
RETURN
    Result&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 May 2022 08:59:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547255#M71974</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-30T08:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547309#M71976</link>
      <description>&lt;P&gt;Will try but would this enable me to compare with any other month?&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 09:14:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547309#M71976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-30T09:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547339#M71978</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It will enable you to compare the selected month with the previous (N) months. So if you set the months -2 you will see 2 months (the selected month and the month before). If youe set the months -3 you will see 3 months (the selected month and the two before) and so on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 09:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547339#M71978</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-30T09:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547391#M71980</link>
      <description>&lt;P&gt;I shall try this but is there a way that I will be able to compate for example 1st to the 24th of May 2022 to any previous month, within the same period?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example January or February 2022 1-24th, without explicitly changing the DAX?&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 09:36:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547391#M71980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-30T09:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547424#M71983</link>
      <description>&lt;P&gt;Also what is the Previousdate? Is it a separate table that I need to create?&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 09:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547424#M71983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-30T09:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547648#M71990</link>
      <description>&lt;P&gt;This method compares with the same period exactly as you wish. The only thing is that you can see the selected month and the previous N months.&amp;nbsp;&lt;BR /&gt;The original sample file is based on years. Whenever a Year and a month are selected the visual will show YTD value of the selected (Year-Month) as well as the YTD of the 3 previous&amp;nbsp;years (up to the selected month).&lt;/P&gt;&lt;P&gt;With the modifications i shared with you, you should be able to select a date and the visual will show the MTD of the selected month and the MTD of the previous month up the selected "Day". For example if you select March 21 then you see MTD values for both March (up to March 21) and for February&amp;nbsp;(Up to Feb 21).&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 11:13:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547648#M71990</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-30T11:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547664#M71992</link>
      <description>&lt;P&gt;I left a comment previously. Perhaps it has been overlooked. But what is&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'PreviousDate'[Date]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is it a separate table that I need to create? I am attaching my data model for your reference. Been stuck on this part&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 11:25:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547664#M71992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-30T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547666#M71993</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry just noticed that.&lt;/P&gt;&lt;P&gt;Previous Date = 'Date'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create an &lt;U&gt;inactive&lt;/U&gt; relationship between 'Date'[Date] (many side) and&amp;nbsp;&amp;nbsp;'Previous Date'[Date] (one side) this should be one-way relationship.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 11:29:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547666#M71993</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-30T11:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: MTD FOR PREVIOUS PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547781#M72002</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Please see example on page 2 of the attached. (PMTD)Here there are two measures to obtain prev mtd.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link with example'&lt;/P&gt;&lt;P&gt;&lt;A title="Prev MTD" href="https://drive.google.com/file/d/1xS9kCnRn-y8Q-6wx5nLdZKeX9RgVURp4/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1xS9kCnRn-y8Q-6wx5nLdZKeX9RgVURp4/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PMTD = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[amount]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATESMTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dates[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),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lt;SPAN&gt;On Jan 2 2020 =18&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then look at result:(Scroll down) and the measures are blank until Feb 1 2020&amp;nbsp; =9&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Feb 2 2020= 18&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To answere your question it keeps track of the exact day for calculating the result.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Please consider marking as solution if this works for you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 May 2022 12:19:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-FOR-PREVIOUS-PERIOD/m-p/2547781#M72002</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-30T12:19:52Z</dc:date>
    </item>
  </channel>
</rss>

