<?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: Calculate MTD,LMTD(same period last month),QTD for Fiscal year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3282870#M121963</link>
    <description>&lt;P&gt;this is not working in my case&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 04:43:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-14T04:43:16Z</dc:date>
    <item>
      <title>Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3273953#M121422</link>
      <description>&lt;P&gt;Hello my query is i want to calclate MTD ,LMTD and LQTD (for Fiscal year)&lt;BR /&gt;I want my calculations as follow&lt;BR /&gt;1. &lt;STRONG&gt;MTD&lt;/STRONG&gt;_if my current month is june-23 I want data&amp;nbsp; from &lt;STRONG&gt;1st june-current day(for instance 8th june)&lt;/STRONG&gt;&lt;BR /&gt;2.&lt;STRONG&gt;LMTD&lt;/STRONG&gt;-this will show data for May-23 I want data from &lt;STRONG&gt;1st may-8th may&lt;/STRONG&gt;&lt;BR /&gt;3&lt;STRONG&gt;LQTD(Q4 FY23)&lt;/STRONG&gt;-this wil show &lt;STRONG&gt;Average of data from(jan1st-8thjan)+(feb1st-8thfeb)+(march 1st-8th march)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;attaching Image for refrence ,Please help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 05:34:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3273953#M121422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-08T05:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3277423#M121616</link>
      <description>&lt;P&gt;- do you have a calendar table?&lt;/P&gt;
&lt;P&gt;- is it in import mode?&lt;/P&gt;
&lt;P&gt;- is it refreshed daily?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 01:58:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3277423#M121616</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-06-10T01:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3278671#M121715</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Yes i do have calendar table and it is in import mode wirh daily refreshed&amp;nbsp;&lt;BR /&gt;I am sharing measures which I have tried but nothing seems to work ,Previous month calculation still giving whole month counts&amp;nbsp;&lt;BR /&gt;Please Help&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 04:43:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3278671#M121715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-12T04:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3280325#M121837</link>
      <description>&lt;P&gt;You need to add calculated columns to your calendar table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IsPastPM = [date]&amp;lt;=EDATE(TODAY(),-1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use these columns as additional filters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The usual caveats apply.&amp;nbsp; The shorter your periods the less useful the comparison.&amp;nbsp; Keep in mind that consecutive months rarely start on the same weekday (only March in non-leap years).&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 21:57:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3280325#M121837</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-06-12T21:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3280828#M121867</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;i got the solution for it ,could you help me out with QTD and LQTD calculations&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 05:20:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3280828#M121867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-13T05:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3281667#M121905</link>
      <description>&lt;P&gt;Same methodology.&amp;nbsp; Add a calculated column to your calendar table for each of these scenarios.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 12:40:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3281667#M121905</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-06-13T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3282870#M121963</link>
      <description>&lt;P&gt;this is not working in my case&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 04:43:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3282870#M121963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-14T04:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3283475#M121988</link>
      <description>&lt;P&gt;Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). &lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 10:35:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3283475#M121988</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-06-14T10:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3287406#M122260</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp; Sharing sample data with expected results,Please check&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/11cD2COFgnBrjV4VvWjTW_UtwrnXyIVgc/edit?usp=sharing&amp;amp;ouid=105643774708082133910&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/11cD2COFgnBrjV4VvWjTW_UtwrnXyIVgc/edit?usp=sharing&amp;amp;ouid=105643774708082133910&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 07:22:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3287406#M122260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-16T07:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MTD,LMTD(same period last month),QTD for Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3287540#M122268</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your sample data first!&lt;/P&gt;
&lt;P&gt;Here are the steps you can refer to :&lt;BR /&gt;(1)This is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2)We can create a calcualted column in calendar date table to get the quarter of the date:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar = ADDCOLUMNS( CALENDAR( FIRSTDATE('Table'[data.date]) , LASTDATE('Table'[data.date])) ,"Quarter" , QUARTER([Date]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(3)Then we can create a measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = var _cur_quarter= MAX('Calendar'[Quarter])
var _pre_quarter= _cur_quarter-1
var _date= MAX('Calendar'[Date])
var _t =  FILTER(ALL('Calendar') ,'Calendar'[Quarter] = _pre_quarter &amp;amp;&amp;amp; DAY('Calendar'[Date])&amp;lt;= DAY(_date))

return
SUMX(_t,  CALCULATE( SUM('Table'[Counts])))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we can meet your need , the result is as follows:&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;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 08:57:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MTD-LMTD-same-period-last-month-QTD-for-Fiscal-year/m-p/3287540#M122268</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-06-16T08:57:46Z</dc:date>
    </item>
  </channel>
</rss>

