<?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: Calculate year level measure in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-year-level-measure/m-p/301566#M8863</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="46479" data-lia-user-login="AshokkumarM" class="lia-mention lia-mention-user"&gt;AshokkumarM&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You may need a calendar table and measures as below.&lt;/P&gt;
&lt;PRE&gt;currentYearSales = CALCULATE(SUM(yourTable[sales]),ALLEXCEPT('calendar','calendar'[Date].[Year]))


lastYearSales = CALCULATE(SUM(yourTable[sales]),FILTER(ALL('calendar'),'calendar'[Date].[Year]=MAX('calendar'[Date].[Year])-1))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See more details in the attached pbix file.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 08:40:31 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-11-21T08:40:31Z</dc:date>
    <item>
      <title>Calculate year level measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-year-level-measure/m-p/300909#M8852</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; My requirement is get to full year total of selected month or each month like below report, Could anyone help in achieving this.&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;Thanks,&lt;/P&gt;&lt;P&gt;Ashok Kumar M&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 13:43:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-year-level-measure/m-p/300909#M8852</guid>
      <dc:creator>AshokkumarM</dc:creator>
      <dc:date>2017-11-10T13:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate year level measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-year-level-measure/m-p/301566#M8863</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="46479" data-lia-user-login="AshokkumarM" class="lia-mention lia-mention-user"&gt;AshokkumarM&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You may need a calendar table and measures as below.&lt;/P&gt;
&lt;PRE&gt;currentYearSales = CALCULATE(SUM(yourTable[sales]),ALLEXCEPT('calendar','calendar'[Date].[Year]))


lastYearSales = CALCULATE(SUM(yourTable[sales]),FILTER(ALL('calendar'),'calendar'[Date].[Year]=MAX('calendar'[Date].[Year])-1))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See more details in the attached pbix file.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:40:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-year-level-measure/m-p/301566#M8863</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-11-21T08:40:31Z</dc:date>
    </item>
  </channel>
</rss>

