<?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: YTD LY in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-LY/m-p/2845805#M91065</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YTD LY = CALCULATE([Discount base Amount YTD],SAMEPERIODLASTYEAR('Date'[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;In additon, you can refer the following links to get it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.kasperonbi.com/get-the-ytd-of-the-same-period-last-year/" target="_self"&gt;Get the YTD of the same period last year&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales prev YTD =
TOTALYTD ( SUM ( Sales[sales] ), DATEADD ( ‘Calendar'[Date], -12, MONTH ) )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/YTD-this-year-vs-YTD-last-year/m-p/1199354" target="_self"&gt;&lt;SPAN&gt;YTD (this year) vs YTD (last year)&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 07:56:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-17T07:56:23Z</dc:date>
    <item>
      <title>YTD LY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-LY/m-p/2843364#M90886</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query1 - Data feed/ table title, discount base amount and clearing date are the fields name.&lt;/P&gt;&lt;P&gt;I have written the following for YTD on Discount Amount:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Discount base Amount YTD = &lt;/SPAN&gt;&lt;SPAN&gt;TOTALYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Query1&lt;/SPAN&gt;&lt;SPAN&gt;[Discount_Base_Amount]&lt;/SPAN&gt;&lt;SPAN&gt;), (&lt;/SPAN&gt;&lt;SPAN&gt;Query1&lt;/SPAN&gt;&lt;SPAN&gt;[Clearing_Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am trying to calculate the discount base amount YTD LY. Please guide.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Oct 2022 22:17:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-LY/m-p/2843364#M90886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-14T22:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: YTD LY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-LY/m-p/2843447#M90894</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , You have join a Clearing_Date with a date of the date table and then create a measure &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Discount base Amount YTD = TOTALYTD(sum(Query1[Discount_Base_Amount]), (Date[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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&amp;amp;t=145s" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Year on Year with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=km41KfM_0uA" target="_blank"&gt;https://www.youtube.com/watch?v=km41KfM_0uA&lt;/A&gt;&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>Sat, 15 Oct 2022 01:55:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-LY/m-p/2843447#M90894</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-10-15T01:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: YTD LY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-LY/m-p/2845805#M91065</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YTD LY = CALCULATE([Discount base Amount YTD],SAMEPERIODLASTYEAR('Date'[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;In additon, you can refer the following links to get it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.kasperonbi.com/get-the-ytd-of-the-same-period-last-year/" target="_self"&gt;Get the YTD of the same period last year&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales prev YTD =
TOTALYTD ( SUM ( Sales[sales] ), DATEADD ( ‘Calendar'[Date], -12, MONTH ) )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/YTD-this-year-vs-YTD-last-year/m-p/1199354" target="_self"&gt;&lt;SPAN&gt;YTD (this year) vs YTD (last year)&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 07:56:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-LY/m-p/2845805#M91065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-17T07:56:23Z</dc:date>
    </item>
  </channel>
</rss>

