<?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 get the values of the past year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4014109#M158118</link>
    <description>&lt;LI-CODE lang="markup"&gt;Total Tržby SF nápočet y-1 2 = 
CALCULATE([Total Tržby SF nápočet Y-1], SAMEPERIODLASTYEAR('Calendar table'[Date]))&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 27 Jun 2024 19:15:17 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-06-27T19:15:17Z</dc:date>
    <item>
      <title>How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4001313#M156105</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hello,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have this table. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;In this table, I have values ​​for the selected year 2025. For this year, it is the measure "Total Tržby SF nápočet" next to it I have values ​​for the year 2024 measure "Total Tržby SF nápočet Y-1 ". &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;What I need to get is that in the third measure "Total Tržby SF nápočet Y-1 2"&lt;SPAN&gt;I need to get the values ​​from row 2023_06 from the measure "Total Tržby SF nápočet Y-1" for row 2024_06 Does anyone know how to do this please?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have already tried many measures but none of them gives the right result.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 07:00:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4001313#M156105</guid>
      <dc:creator>FilipHanus</dc:creator>
      <dc:date>2024-06-20T07:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4002925#M156131</link>
      <description>&lt;P&gt;SAMEPERIODLASTYEAR will work for that.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 00:23:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4002925#M156131</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-21T00:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4003393#M156172</link>
      <description>&lt;P&gt;That won't work. It can be applied to a contiguous series of data, but this is not a contiguous series of data. This is a combination of two dates: Year - sameperiotlastyear can be used, but it cannot be applied to the second date.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 06:37:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4003393#M156172</guid>
      <dc:creator>FilipHanus</dc:creator>
      <dc:date>2024-06-21T06:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4003432#M156178</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733817" data-lia-user-login="FilipHanus" class="lia-mention lia-mention-user"&gt;FilipHanus&lt;/a&gt;&amp;nbsp;Yes but you don't need to worry about contiguous data if you have a proper Date table and a relationship to the other table, SAMEPERIODLASTYEAR would work fine then.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 07:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4003432#M156178</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-06-21T07:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4003600#M156193</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have a date table, but there is a relationship between sales and the date table.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Column Year Month UZ OPP is a different table and it is not possible to do another realice because there would be ambiguity. Model is here. I am working with two dates. One date is date of sales and the second date is date of close opportunity.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 08:13:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4003600#M156193</guid>
      <dc:creator>FilipHanus</dc:creator>
      <dc:date>2024-06-21T08:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4004222#M156271</link>
      <description>&lt;P&gt;Avoid linking fact tables directly. Prefer to control them via dimension tables (like your calendar table).&amp;nbsp; Use USERELATIONSHIP and SAMEPERIODLASTYEAR as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 13:57:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4004222#M156271</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-21T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4006410#M156830</link>
      <description>&lt;P&gt;&lt;A href="https://zvvzas-my.sharepoint.com/:u:/g/personal/filip_hanus_zvvz_cz/EYm8SJw6YNtCr9G1ls2x0_QBmbWsNc7dPvRmmBhMSZ6QZA" target="_blank" rel="noopener"&gt;Report SalesForce Community.pbix&lt;/A&gt;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Here is a link to the source file.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The goal is to get in the table for line 2024_06 in the measure "Total Revenue SF calculated y-1 2" the value from line 2023_06 from the measure "Total Revenue SF calculated Y-1" and the same for the other lines.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Measure Total Sales SF count Y-1" already shows last year's sales. I still need to shift the opportunity close date by a year.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 07:35:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4006410#M156830</guid>
      <dc:creator>FilipHanus</dc:creator>
      <dc:date>2024-06-24T07:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4010465#M157809</link>
      <description>&lt;P&gt;Can anyone help me?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 06:07:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4010465#M157809</guid>
      <dc:creator>FilipHanus</dc:creator>
      <dc:date>2024-06-26T06:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4014109#M158118</link>
      <description>&lt;LI-CODE lang="markup"&gt;Total Tržby SF nápočet y-1 2 = 
CALCULATE([Total Tržby SF nápočet Y-1], SAMEPERIODLASTYEAR('Calendar table'[Date]))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Jun 2024 19:15:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4014109#M158118</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-27T19:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4015593#M158243</link>
      <description>&lt;P&gt;&lt;SPAN&gt;try it in the file I sent and you'll see that it just doesn't work!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 12:20:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4015593#M158243</guid>
      <dc:creator>FilipHanus</dc:creator>
      <dc:date>2024-06-28T12:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4015970#M158281</link>
      <description>&lt;P&gt;I did try and it did seem to work as far as I could tell.&amp;nbsp; Can you provide a more simplified sample file that only focuses on the issue you are trying to solve?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 15:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4015970#M158281</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-28T15:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4017884#M158444</link>
      <description>&lt;P&gt;&lt;A href="https://zvvzas-my.sharepoint.com/personal/filip_hanus_zvvz_cz/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Ffilip%5Fhanus%5Fzvvz%5Fcz%2FDocuments%2FReport%20SalesForce%20Community%2Epbix&amp;amp;parent=%2Fpersonal%2Ffilip%5Fhanus%5Fzvvz%5Fcz%2FDocuments&amp;amp;ga=1" target="_blank"&gt;OneDrive (sharepoint.com)&lt;/A&gt;&amp;nbsp;you can downloand file here&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 06:27:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4017884#M158444</guid>
      <dc:creator>FilipHanus</dc:creator>
      <dc:date>2024-07-01T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values of the past year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4029641#M159273</link>
      <description>&lt;P&gt;Did you manage to find a solution? I have sent you the source file below&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 08:06:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-values-of-the-past-year/m-p/4029641#M159273</guid>
      <dc:creator>FilipHanus</dc:creator>
      <dc:date>2024-07-08T08:06:43Z</dc:date>
    </item>
  </channel>
</rss>

