<?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: LY YTD Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645776#M141172</link>
    <description>&lt;P&gt;Not really, it still shows complete last year data not last year January.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2024 11:33:40 GMT</pubDate>
    <dc:creator>FR14</dc:creator>
    <dc:date>2024-01-18T11:33:40Z</dc:date>
    <item>
      <title>LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645722#M141161</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my measure for LY YTD but it shows complete year values, how can i modify it to show the last year year to date values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LY YTD Bookings Annualized =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;__MaxDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Transaction Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Calculate&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;Orders&lt;/SPAN&gt;&lt;SPAN&gt;[Annualized Value]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Transaction Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;__MaxDate&lt;/SPAN&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Transaction Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;__MaxDate&lt;/SPAN&gt;&lt;SPAN&gt; ))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 10:57:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645722#M141161</guid>
      <dc:creator>FR14</dc:creator>
      <dc:date>2024-01-18T10:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645730#M141162</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="623734" data-lia-user-login="FR14" class="lia-mention lia-mention-user"&gt;FR14&lt;/a&gt;&amp;nbsp;You can modify the logic this way. This will give LY YTD values.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LY YTD Bookings Annualized = 
VAR __MaxDate = MAX('Transaction Date'[Date])
VAR __StartDateLastYear = DATE(YEAR(__MaxDate)-1, MONTH(__MaxDate), DAY(__MaxDate))
RETURN
CALCULATE(
    SUM(Orders[Annualized Value]),
    'Transaction Date'[Date] &amp;gt;= __StartDateLastYear &amp;amp;&amp;amp; 'Transaction Date'[Date] &amp;lt;= __MaxDate
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 11:07:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645730#M141162</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2024-01-18T11:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645744#M141164</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="623734" data-lia-user-login="FR14" class="lia-mention lia-mention-user"&gt;FR14&lt;/a&gt;&amp;nbsp; If your there is&amp;nbsp;&lt;SPAN&gt;date table in the model, you can use time intelliegence functions like DATEADD , SAMEPERIODLASTYEAR&amp;nbsp; for LY YTD calculations.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 11:16:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645744#M141164</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2024-01-18T11:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645747#M141165</link>
      <description>&lt;P&gt;Thank you very much but result show me this year values when i implement it.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 11:16:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645747#M141165</guid>
      <dc:creator>FR14</dc:creator>
      <dc:date>2024-01-18T11:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645751#M141168</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="623734" data-lia-user-login="FR14" class="lia-mention lia-mention-user"&gt;FR14&lt;/a&gt;&amp;nbsp; You can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LY YTD Bookings Annualized = 
VAR __MaxDate = MAX('Transaction Date'[Date])
VAR __StartDateLastYear = DATE(YEAR(__MaxDate)-1, 01, 01)
RETURN
CALCULATE(
    SUM(Orders[Annualized Value]),
    'Transaction Date'[Date] &amp;gt;= __StartDateLastYear &amp;amp;&amp;amp; 'Transaction Date'[Date] &amp;lt;= __MaxDate
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 11:22:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645751#M141168</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2024-01-18T11:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645755#M141169</link>
      <description>&lt;P&gt;Thank you i checked this one and it shows complete last year values not last year January.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 11:25:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645755#M141169</guid>
      <dc:creator>FR14</dc:creator>
      <dc:date>2024-01-18T11:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645762#M141170</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="623734" data-lia-user-login="FR14" class="lia-mention lia-mention-user"&gt;FR14&lt;/a&gt;&amp;nbsp;Did you got what you where looking ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 11:29:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645762#M141170</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2024-01-18T11:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645776#M141172</link>
      <description>&lt;P&gt;Not really, it still shows complete last year data not last year January.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 11:33:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645776#M141172</guid>
      <dc:creator>FR14</dc:creator>
      <dc:date>2024-01-18T11:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645791#M141174</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="623734" data-lia-user-login="FR14" class="lia-mention lia-mention-user"&gt;FR14&lt;/a&gt;&amp;nbsp;You can try this, this will give for last year january to date&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LY YTD Bookings Annualized = 
VAR __MaxDate = MAX('Transaction Date'[Date])
VAR __StartDateLastYear = DATE(YEAR(__MaxDate)-1, 01, 01)
VAR __Enddate = DATE(YEAR(__MaxDate)-1, 01, DAY(__MaxDate))
RETURN
CALCULATE(
    SUM(Orders[Annualized Value]),
    'Transaction Date'[Date] &amp;gt;= __StartDateLastYear &amp;amp;&amp;amp; 'Transaction Date'[Date] &amp;lt;= __Enddate
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 11:38:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3645791#M141174</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2024-01-18T11:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3646057#M141198</link>
      <description>&lt;P&gt;Thank you for your support, this solution did not solve my problem. It works okay for this YTD but when i select other months and years values don't change&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 14:00:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3646057#M141198</guid>
      <dc:creator>FR14</dc:creator>
      <dc:date>2024-01-18T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3646072#M141200</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="623734" data-lia-user-login="FR14" class="lia-mention lia-mention-user"&gt;FR14&lt;/a&gt;&amp;nbsp;You can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LY YTD Bookings Annualized = 
VAR __MaxDate = MAX('Transaction Date'[Date])
VAR __StartDateLastYear = DATE(YEAR(__MaxDate)-1, 01, 01)
VAR __Enddate = DATE(YEAR(__MaxDate)-1,MONTH(__MaxDate), DAY(__MaxDate))
RETURN
CALCULATE(
    SUM(Orders[Annualized Value]),
    'Transaction Date'[Date] &amp;gt;= __StartDateLastYear &amp;amp;&amp;amp; 'Transaction Date'[Date] &amp;lt;= __Enddate
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Jan 2024 14:09:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-YTD-Measure/m-p/3646072#M141200</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2024-01-18T14:09:04Z</dc:date>
    </item>
  </channel>
</rss>

