<?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: How to create a measure of last month of each year in a Tabular SSAS database in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-of-last-month-of-each-year-in-a-Tabular/m-p/1811492#M38270</link>
    <description>&lt;P&gt;Hi&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;,&lt;/P&gt;&lt;P&gt;I only need MTD (Last Year End), because I have already calculated the other measures.&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 12:45:01 GMT</pubDate>
    <dc:creator>FBAB</dc:creator>
    <dc:date>2021-04-28T12:45:01Z</dc:date>
    <item>
      <title>How to create a measure of last month of each year in a Tabular SSAS database</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-of-last-month-of-each-year-in-a-Tabular/m-p/1811216#M38251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to get a measure that calculates [Margin %] of every month - [YTD Margin Dec Last Year] of december last year&lt;/P&gt;&lt;P&gt;My idea is to create a new hiden measure [YTD Margin Dec Last Year], and then i calculate ([Margin %] of every month - new hiden measure),&amp;nbsp;&lt;SPAN&gt;but i havn't found how&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YTD Margin Dec Last Year:= 
IF ( 
   MONTH ( MAX ('Date'[Date Field] ) ) = 12;
   CALCULATE([YTD Margin %]; SAMEPERIODLASTYEAR('Date'[Date Field])
))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;FrstCal:= [Margin %] - [YTD Margin Dec Last Year]  -- work only for Month num 12&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example :&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;&lt;P&gt;I hope its clear&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 10:22:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-of-last-month-of-each-year-in-a-Tabular/m-p/1811216#M38251</guid>
      <dc:creator>FBAB</dc:creator>
      <dc:date>2021-04-28T10:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure of last month of each year in a Tabular SSAS database</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-of-last-month-of-each-year-in-a-Tabular/m-p/1811255#M38254</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="298584" data-lia-user-login="FBAB" class="lia-mention lia-mention-user"&gt;FBAB&lt;/a&gt; , do you dec MTD ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MTD (Last Year End) = CALCULATE([Margin %],DATESMTD(ENDOFYEAR(dateadd('Date'[Date],-12,MONTH),"12/31")))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;last year last month = CALCULATE([Margin %],DATESMTD(dateadd('Date'[Date],-1*month(Today()),MONTH)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YTD Sales = CALCULATE([Margin %],DATESYTD('Date'[Date],"12/31"))&lt;BR /&gt;Last YTD Sales = CALCULATE([Margin %],DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 10:43:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-of-last-month-of-each-year-in-a-Tabular/m-p/1811255#M38254</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-28T10:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure of last month of each year in a Tabular SSAS database</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-of-last-month-of-each-year-in-a-Tabular/m-p/1811492#M38270</link>
      <description>&lt;P&gt;Hi&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;,&lt;/P&gt;&lt;P&gt;I only need MTD (Last Year End), because I have already calculated the other measures.&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 12:45:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-of-last-month-of-each-year-in-a-Tabular/m-p/1811492#M38270</guid>
      <dc:creator>FBAB</dc:creator>
      <dc:date>2021-04-28T12:45:01Z</dc:date>
    </item>
  </channel>
</rss>

