<?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: Need to measure last year and this year until yesterday in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-measure-last-year-and-this-year-until-yesterday/m-p/688644#M561</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have tried this different ways&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Euros MTD = if( lastdate( Dates[Date] ) &amp;gt; today(); blank(); calculate( [Total Euros]; Datesmtd( dates[date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Euros MTD LY = CALCULATE(TOTALMTD(SUM(wl_cargo[EURSEK]); Dates[Date]); SAMEPERIOdLASTYEAR(Dates[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But it still shows the whole month for last year.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any other ideas? Can I filter the ly for today -366?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 10 May 2019 12:42:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-10T12:42:39Z</dc:date>
    <item>
      <title>Need to measure last year and this year until yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-measure-last-year-and-this-year-until-yesterday/m-p/676278#M397</link>
      <description>&lt;P&gt;So quite new at this but need to calculate this year against last year until yesterday. Because I get data only once a night. So the data I have today is for yesterday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now it shows data for yesterday lets say 300 000euros and it is 01.01.2019-23.04.2019 and the target goal is sameperiod lastyear and it shows 305 000euros but it is for 01.01.2018-24.04.2018 so it shows as -1,66%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this instance i use KPI slicer and my measures are Indicator :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Euros MTD = IF( LASTDATE( Dates[Date] ) &amp;gt; TODAY(), BLANK(), CALCULATE( [Total Euros], DATESMTD( Dates[Date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;target goal :&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Euros MTD LY = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF( LASTDATE( Dates[Date] ) &amp;gt; TODAY(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BLANK(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE( [Total Euros LY], DATESMTD( Dates[Date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Apr 2019 06:06:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-measure-last-year-and-this-year-until-yesterday/m-p/676278#M397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-24T06:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to measure last year and this year until yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-measure-last-year-and-this-year-until-yesterday/m-p/676858#M399</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When calculating ou MTD LY, try using the SAMEPERIODLASTYEAR function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First calculate you MTD of the current period, which will take into account that no data is available for today, and then move the period to last year with the SAMEPERIODLASTYEAR function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 15:03:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-measure-last-year-and-this-year-until-yesterday/m-p/676858#M399</guid>
      <dc:creator>verscev</dc:creator>
      <dc:date>2019-04-24T15:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to measure last year and this year until yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-measure-last-year-and-this-year-until-yesterday/m-p/688644#M561</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have tried this different ways&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Euros MTD = if( lastdate( Dates[Date] ) &amp;gt; today(); blank(); calculate( [Total Euros]; Datesmtd( dates[date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Euros MTD LY = CALCULATE(TOTALMTD(SUM(wl_cargo[EURSEK]); Dates[Date]); SAMEPERIOdLASTYEAR(Dates[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But it still shows the whole month for last year.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any other ideas? Can I filter the ly for today -366?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 May 2019 12:42:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-measure-last-year-and-this-year-until-yesterday/m-p/688644#M561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-10T12:42:39Z</dc:date>
    </item>
  </channel>
</rss>

