<?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 Sameperiod last year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3341001#M125394</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Power Bi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have uploaded a Spreadsheet with the following Columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Day - Month - Year - Revenue per day - Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a Slicer to switch between Customers and the table is showing the following data&lt;/P&gt;&lt;P&gt;Rows show the Years and columns the month with the Sum of Revenue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the total coloum I need to show the difference same period last year in a %. I have looked at so many Videos and tried different Measure but not on is&amp;nbsp; providing me the outcome I require. Help is much appreciated&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Casey&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 13:39:16 GMT</pubDate>
    <dc:creator>Casey</dc:creator>
    <dc:date>2023-07-20T13:39:16Z</dc:date>
    <item>
      <title>Sameperiod last year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3341001#M125394</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Power Bi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have uploaded a Spreadsheet with the following Columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Day - Month - Year - Revenue per day - Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a Slicer to switch between Customers and the table is showing the following data&lt;/P&gt;&lt;P&gt;Rows show the Years and columns the month with the Sum of Revenue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the total coloum I need to show the difference same period last year in a %. I have looked at so many Videos and tried different Measure but not on is&amp;nbsp; providing me the outcome I require. Help is much appreciated&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Casey&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 13:39:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3341001#M125394</guid>
      <dc:creator>Casey</dc:creator>
      <dc:date>2023-07-20T13:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiod last year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3341149#M125400</link>
      <description>&lt;P&gt;Hi Casy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This isn't as straightforward as you would expect and requires the use of the ISNCOPE() function to recognize when you are not looking at the total.&lt;BR /&gt;You need to build a function that captures the SUM you required for the Current year (MAX) and the previous year (MIN) and then tell the measure to calculate the difference except when it is in the Year column hierarchy (row in the matrix). Note, that this will work if you only have 2 years in the matrix. if you add more it will calculate the difference between the last and earliest years.&lt;/P&gt;&lt;P&gt;You can see it applied in the bellow screen shot.&lt;/P&gt;&lt;P&gt;Link to the file I built:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!ApozY8vVlQj8hHiHMKkJSfrByJHf?e=uueEaw" target="_blank"&gt;North Wind Base - Sameperiod last year.pbix&lt;/A&gt;&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;Did I answer your question? Mark my post as a solution!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:38:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3341149#M125400</guid>
      <dc:creator>AlanFredes</dc:creator>
      <dc:date>2023-07-20T14:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiod last year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3341733#M125440</link>
      <description>&lt;P&gt;Hi Alan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply, unfortunately, it did not work. I got The end of the input was reached message. I checked everything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 19:41:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3341733#M125440</guid>
      <dc:creator>Casey</dc:creator>
      <dc:date>2023-07-20T19:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiod last year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3341734#M125441</link>
      <description>&lt;P&gt;Hi Casey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you send me an example file with your data?&lt;BR /&gt;I could replicate it there and send it back.&lt;/P&gt;&lt;P&gt;Upload the file to google docs or onedrive and send me the link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 19:44:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3341734#M125441</guid>
      <dc:creator>AlanFredes</dc:creator>
      <dc:date>2023-07-20T19:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiod last year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3342736#M125474</link>
      <description>&lt;P&gt;Hi Alan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please see below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://ocuconltd-my.sharepoint.com/:u:/g/personal/casey_veevers_ocucon_com/EdNhSlsp1V1GpXrD7t15IUMBpExDc_yAiH9H92imJtk1aw?e=sCVUnQ" target="_self"&gt;Example &lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Casey&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 07:30:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3342736#M125474</guid>
      <dc:creator>Casey</dc:creator>
      <dc:date>2023-07-21T07:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiod last year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3343545#M125502</link>
      <description>&lt;P&gt;Hi Casey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was just a small error with the DAX formula and I was able to fix it.&lt;/P&gt;&lt;P&gt;Also if you want the difference to calculate for the whole year you will need a separate date table with the complete months for 2023. I added it and added a new "Total Diff Full Year" measure to calculate for all of 2023.&lt;BR /&gt;Let me know if you have any further questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!ApozY8vVlQj8hHnHDun7_OY7N7cA?e=nkjnqX" target="_blank"&gt;Items Fixed.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark my post as a solution!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 14:02:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiod-last-year/m-p/3343545#M125502</guid>
      <dc:creator>AlanFredes</dc:creator>
      <dc:date>2023-07-21T14:02:09Z</dc:date>
    </item>
  </channel>
</rss>

