<?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 DAX help - calculate MTD, YTD and Full Year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-calculate-MTD-YTD-and-Full-Year/m-p/2343488#M59214</link>
    <description>&lt;P&gt;I did not managed to create my table to show MTD, YTD and Full Year for comparative year(s).&amp;nbsp; Pls advise where did I go wrong.&amp;nbsp; File url:&amp;nbsp; &lt;A href="https://1drv.ms/x/s!Aj1jIHqeNbLXkyDkyO0tSLgHeFi9?e=a6Dg4N" target="_blank"&gt;https://1drv.ms/x/s!Aj1jIHqeNbLXkyDkyO0tSLgHeFi9?e=a6Dg4N&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 02:11:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-17T02:11:03Z</dc:date>
    <item>
      <title>DAX help - calculate MTD, YTD and Full Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-calculate-MTD-YTD-and-Full-Year/m-p/2343488#M59214</link>
      <description>&lt;P&gt;I did not managed to create my table to show MTD, YTD and Full Year for comparative year(s).&amp;nbsp; Pls advise where did I go wrong.&amp;nbsp; File url:&amp;nbsp; &lt;A href="https://1drv.ms/x/s!Aj1jIHqeNbLXkyDkyO0tSLgHeFi9?e=a6Dg4N" target="_blank"&gt;https://1drv.ms/x/s!Aj1jIHqeNbLXkyDkyO0tSLgHeFi9?e=a6Dg4N&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 02:11:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-calculate-MTD-YTD-and-Full-Year/m-p/2343488#M59214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-17T02:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help - calculate MTD, YTD and Full Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-calculate-MTD-YTD-and-Full-Year/m-p/2343633#M59221</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , That excel, what measures you have tried &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example with date table&lt;/P&gt;
&lt;P&gt;MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))&lt;BR /&gt;&lt;BR /&gt;last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))&lt;BR /&gt;Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))&lt;BR /&gt;This year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))&lt;BR /&gt;Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 03:51:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-calculate-MTD-YTD-and-Full-Year/m-p/2343633#M59221</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-17T03:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help - calculate MTD, YTD and Full Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-calculate-MTD-YTD-and-Full-Year/m-p/2343884#M59241</link>
      <description>&lt;P&gt;Hi, amitchandak.&amp;nbsp; Recommended solution does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have separate datasets for 2020 and 2021 which capture month by month sales volume, net sales and gross margin by product.&amp;nbsp; These 2 datasets are linked to an auto generated date table "Calendar".&amp;nbsp; The data table is linked to a separate table "Month" listing the 12 months (used as slicer).&lt;/P&gt;&lt;P&gt;Measures created in the sales datasets as follows:&lt;/P&gt;&lt;P&gt;2020 dataset:&lt;/P&gt;&lt;P&gt;MTD Sales = CALCULATE(SUM(2020[Amount]),DATESMTD('Calendar'[Date]))&lt;/P&gt;&lt;P&gt;YTD Sales =&amp;nbsp;CALCULATE(SUM(2020[Amount]),DATESYTD('Calendar'[Date]))&lt;/P&gt;&lt;P&gt;Total Year Sales =&amp;nbsp;CALCULATE(SUM(2020[Amount]),ALL('Month'[Month]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar measures are created in the 2021 sales dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Outcome: pivot table shows 2021 MTD, YTD and Total Year data correctly, but no data reflected in 2020 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls advise solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 06:15:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-calculate-MTD-YTD-and-Full-Year/m-p/2343884#M59241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-17T06:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help - calculate MTD, YTD and Full Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-calculate-MTD-YTD-and-Full-Year/m-p/2344900#M59284</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , if you table 2020 has dates of 2020, then you have to create last year/year behind measure for YTD/MTD etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as same date table is applied to both tables, so&amp;nbsp; current year is 2021&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have give example in my last post&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer if needed&lt;/P&gt;
&lt;P&gt;Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period, &lt;BR /&gt;Custom Period till date: &lt;A href="https://youtu.be/aU2aKbnHuWs" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 13:06:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-calculate-MTD-YTD-and-Full-Year/m-p/2344900#M59284</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-17T13:06:04Z</dc:date>
    </item>
  </channel>
</rss>

