<?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: DatesAdd Function with Custom Date - Help Needed in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1588018#M644792</link>
    <description>&lt;P&gt;One quick question before I share data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified the measure to use the date that is in the same table as the revenue but instead of getting the total of last quarter I got the value of October 2020&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Calculate([Total Revenue], DatesQTD(DateAdd('DWH Revenue'[Date], -1, Quarter))).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 15:36:22 GMT</pubDate>
    <dc:creator>SimonSeez</dc:creator>
    <dc:date>2021-01-08T15:36:22Z</dc:date>
    <item>
      <title>DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587794#M644682</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this custom date table and I need to perform some MTD, QTD and YTD calculations. I am using DatesADD function and it just does not seem to work. The result always gives the sum of the whole previous year&lt;/P&gt;&lt;P&gt;&lt;A href="https://radacad.com/all-in-one-script-to-create-date-dimension-in-power-bi-using-power-query" target="_blank" rel="noopener"&gt;https://radacad.com/all-in-one-script-to-create-date-dimension-in-power-bi-using-power-query&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea how I can perform these activities with a custom date calender?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Simon&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 12:45:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587794#M644682</guid>
      <dc:creator>SimonSeez</dc:creator>
      <dc:date>2021-01-08T12:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587799#M644686</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192872" data-lia-user-login="SimonSeez" class="lia-mention lia-mention-user"&gt;SimonSeez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using DAX you can use the following formulas for YTD and YTD LY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;YTD = CALCULATE(SUM(Table6[Amount]),DATESYTD('Calendar'[Date]))&lt;/P&gt;&lt;P&gt;YTD LY = CALCULATE(Table6[YTD],SAMEPERIODLASTYEAR('Calendar'[Date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Useful links that you could look at are the following:&lt;/P&gt;&lt;P&gt;&lt;A href="https://simplesqlbi.home.blog/2019/08/18/dax-formulas-to-calculate-mtd-qtd-ytd-values-and-comparing-them-against-same-period-last-year-mtd-qtd-ytd-values-in-power-bi/" target="_blank"&gt;https://simplesqlbi.home.blog/2019/08/18/dax-formulas-to-calculate-mtd-qtd-ytd-values-and-comparing-them-against-same-period-last-year-mtd-qtd-ytd-values-in-power-bi/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/time-intelligence-functions-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/time-intelligence-functions-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 12:51:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587799#M644686</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-01-08T12:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587804#M644688</link>
      <description>&lt;P&gt;Are you using an approach like these?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.mssqltips.com/sqlservertip/4841/calculating-mtd-qtd-ytd-running-and-cumulative-total-in-power-bi/" target="_blank"&gt;Calculating MTD, QTD, YTD, Running and Cumulative Total in Power BI (mssqltips.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/basics-of-time-intelligence-in-dax-for-power-bi-year-to-date-quarter-to-date-month-to-date" target="_blank"&gt;Basics of Time Intelligence in DAX for Power BI; Year to Date, Quarter to Date, Month to Date - RADACAD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share your DAX for a specific suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 12:51:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587804#M644688</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2021-01-08T12:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587808#M644691</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192872" data-lia-user-login="SimonSeez" class="lia-mention lia-mention-user"&gt;SimonSeez&lt;/a&gt; , Are you using Date table.&lt;/P&gt;
&lt;P&gt;Please refer this video where I&amp;nbsp; dicussed Why Time intelligence can fail - &lt;A href="https://www.youtube.com/watch?v=OBf0rjpp5Hw" target="_blank"&gt;https://www.youtube.com/watch?v=OBf0rjpp5Hw&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need make sure 5 things. Please check.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 12:54:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587808#M644691</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-01-08T12:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587845#M644715</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Yes, I am using a date table. Off to watch your video now&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 13:22:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587845#M644715</guid>
      <dc:creator>SimonSeez</dc:creator>
      <dc:date>2021-01-08T13:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587858#M644725</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192872" data-lia-user-login="SimonSeez" class="lia-mention lia-mention-user"&gt;SimonSeez&lt;/a&gt; , in case that does not help. Also, the useful information provided by other super users/users does not help. then&lt;/P&gt;
&lt;P&gt;Please share a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 13:40:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587858#M644725</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-01-08T13:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587906#M644750</link>
      <description>&lt;P&gt;Hello Pat,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculate([Total Revenue], DateAdd('Date Table' [Date], -1, Quarter))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rather than give me total for the last quarter, it gives a total for the whole of the previous year&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 14:22:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587906#M644750</guid>
      <dc:creator>SimonSeez</dc:creator>
      <dc:date>2021-01-08T14:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587964#M644766</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Educative video as expected. I subscribed to the channel as well. I have applied everything you said and I noticed you used a DatesYTD before you used the DatesAdd. I hadn't seen this used before so I tried it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was my previous measure -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculate([Total Revenue], DateAdd('Date Table' [Date], -1, Quarter))&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified it to seem like yours&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculate([Total Revenue], DatesQTD(DateAdd('Date Table' [Date], -1, Quarter))). Strangely this gave me a blank result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then remodified to this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculate([Total Revenue], DatesQTD(DateAdd('Date Table' [Date], -1, Year))) and strangely it gave me the correct result. I couldn't make sense of my the measure worked so I have some doubts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 14:51:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1587964#M644766</guid>
      <dc:creator>SimonSeez</dc:creator>
      <dc:date>2021-01-08T14:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1588009#M644787</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192872" data-lia-user-login="SimonSeez" class="lia-mention lia-mention-user"&gt;SimonSeez&lt;/a&gt; , Thanks for subscribing. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate([Total Revenue], DatesQTD(DateAdd('Date Table' [Date], -1, Quarter)))&amp;nbsp; means last qtr. That is blank means no data in last qtr but data in last year same qtr.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That sound like strange.&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 15:28:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1588009#M644787</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-01-08T15:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1588018#M644792</link>
      <description>&lt;P&gt;One quick question before I share data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified the measure to use the date that is in the same table as the revenue but instead of getting the total of last quarter I got the value of October 2020&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Calculate([Total Revenue], DatesQTD(DateAdd('DWH Revenue'[Date], -1, Quarter))).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 15:36:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1588018#M644792</guid>
      <dc:creator>SimonSeez</dc:creator>
      <dc:date>2021-01-08T15:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: DatesAdd Function with Custom Date - Help Needed</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1588039#M644808</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192872" data-lia-user-login="SimonSeez" class="lia-mention lia-mention-user"&gt;SimonSeez&lt;/a&gt; , dateadd need continuous dates . And it return blank when it does not get it. &lt;/P&gt;
&lt;P&gt;refer this video, where I have shown that for a column - &lt;A href="https://www.youtube.com/watch?v=9qiRivlBv8w" target="_blank"&gt;https://www.youtube.com/watch?v=9qiRivlBv8w&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best way test is&lt;/P&gt;
&lt;P&gt;Calculate(Min('DWH Revenue'[Date]), DatesQTD(DateAdd('DWH Revenue'[Date], -1, Quarter)))&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Calculate(Max('DWH Revenue'[Date]), DatesQTD(DateAdd('DWH Revenue'[Date], -1, Quarter)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you know what you time intelligence function returns: min and max. It returns a set of dates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 15:55:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/DatesAdd-Function-with-Custom-Date-Help-Needed/m-p/1588039#M644808</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-01-08T15:55:33Z</dc:date>
    </item>
  </channel>
</rss>

