<?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: Create Measure that shows Previous Period of period selected in Date Slicer in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018343#M481237</link>
    <description>&lt;P&gt;Ah no dice, still blank &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 20:15:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-09T20:15:23Z</dc:date>
    <item>
      <title>Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018058#M481141</link>
      <description>&lt;P&gt;Good Day and thanks in advance for any help.&lt;/P&gt;&lt;P&gt;I am attempting to create a measure that finds Sales Revenue for the parallel&amp;nbsp;period (for the previous year) selected in my Time Period selector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To explain: I have a table that shows Market Classification, Revenue, Total Costs, Gross Profit and Gross Profit Rate. I have also a Time Period Slicer that changes all of the above values to Current Month to Date, Current Year to Date, MTD Last Year, YTD Last Year, etc. I am attempting to add another column that will compare the revenue in the selected time period with the revenue of the parallel period the prior year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I select Current Quarter to Date from the selector, then I would like this new column to show QTD Revenue for 2019 .&amp;nbsp;&amp;nbsp;I cannot figure out what measure to use to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry I cannot share data for this, there is too much proprietary info to strip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&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;Here is what I am trying to do:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 17:14:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018058#M481141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-09T17:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018176#M481177</link>
      <description>&lt;P&gt;Generally you wrap your measure in a CALCULATE and use SAMEPERIODLASTYEAR or PARRELPERIOD&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 18:44:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018176#M481177</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-09T18:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018204#M481188</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&amp;nbsp;Thanks! I have tried both and they are coming up blank. I have used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= CALCULATE([REVENUE],PARALLELPERIOD('Calendar'{[Date],-1,YEAR))&amp;nbsp;&amp;nbsp;&amp;nbsp; and&lt;/P&gt;&lt;P&gt;= CALCULATE([REVENUE],SAMEPERIODLASTYEAR('Calendar'{Date])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Likely has to do with my Time Period table used for the slicer? I will try to get some data together quickly to show&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 18:55:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018204#M481188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-09T18:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018227#M481197</link>
      <description>&lt;P&gt;Ah, yes, probably. You are probably not using a separate date table marked as a date table. That's when you can use time intelligence functions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would need to understand your data better to figure out how to help specifically. Let me reread the post.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018227#M481197</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-09T19:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018272#M481208</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;Here is a sample report, hopefully it helps/works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AhaswjOSOilxqyx7Vm-lGm2NP-m4" target="_self"&gt;Test Report&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:36:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018272#M481208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-09T19:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018279#M481210</link>
      <description>It's a PBIT file so I it doesn't load any data other than calendar</description>
      <pubDate>Thu, 09 Apr 2020 19:39:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018279#M481210</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-09T19:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018293#M481214</link>
      <description>&lt;P&gt;Yeahhhh I havent shared anything on here before so I figured I would do it wrong. Trying again! (thanks for being patient!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AhaswjOSOilxqy0s4tQEM6wt843t" target="_self"&gt;Report Take 2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:44:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018293#M481214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-09T19:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018325#M481230</link>
      <description>&lt;P&gt;OK, looking at this, perhaps you could do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Previous Year Revenue = 
  VAR __Min = MIN('Period'[Date])
  VAR __Max = MAX('Period'[Date])
  VAR __LastYearMin = DATE(YEAR(__Min)-1,MONTH(__Min),DAY(__Min))
  VAR __LastYearMax = DATE(YEAR(__Max)-1,MONTH(__Max),DAY(__Max))
RETURN
  SUMX(FILTER('Sales','Sales'[Time Entered] &amp;gt;= __LastYearMin &amp;amp;&amp;amp; 'Sales'[Time Entered] &amp;lt;= __LastYearMax),'Sales'[Revenue])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 20:04:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018325#M481230</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-09T20:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018343#M481237</link>
      <description>&lt;P&gt;Ah no dice, still blank &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 20:15:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018343#M481237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-09T20:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018775#M481383</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can try to use a all function in a measure to get correct result (by removing the period filter when calculate the last year):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE('Sales'[Profit],ALL(Period[Period]),SAMEPERIODLASTYEAR('Calendar'[Date]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If it doesn't meet your requirement, Could you please show the exact expected result based on the Tables that you have shared？&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 03:12:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1018775#M481383</guid>
      <dc:creator>v-lid-msft</dc:creator>
      <dc:date>2020-04-10T03:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure that shows Previous Period of period selected in Date Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1020290#M481875</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164769" data-lia-user-login="v-lid-msft" class="lia-mention lia-mention-user"&gt;v-lid-msft&lt;/a&gt;&amp;nbsp;YES!! One change: the measure is for Revenue and not profit, but you got it. I tried something similar as well previously&amp;nbsp;but had the syntax wrong and with all my other failed attempts had lost all hope. Thank you Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 21:14:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Create-Measure-that-shows-Previous-Period-of-period-selected-in/m-p/1020290#M481875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-10T21:14:41Z</dc:date>
    </item>
  </channel>
</rss>

