<?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: PREVIOUS PERIOD VALUE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PREVIOUS-PERIOD-VALUE/m-p/3263918#M120777</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;OH MY GOD it worked sooooo perfectly. Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 13:18:28 GMT</pubDate>
    <dc:creator>KIlekun</dc:creator>
    <dc:date>2023-06-01T13:18:28Z</dc:date>
    <item>
      <title>PREVIOUS PERIOD VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PREVIOUS-PERIOD-VALUE/m-p/3261743#M120660</link>
      <description>&lt;P&gt;Hi Guys, I am trying to calculate the previous period GHI (attached image in the post). The "Global Hunger Index" Column is a measure i created to calculate the global average of individual countries aggregated within the year they were recorded, while the "Previous Period GHI" is meant to return the previous period Value of the "Global Hunger Index". But the issue is that since the time intervals are not equal, this makes the DATEADD function not return the values accordingly (i.e i want the 17.51 to be just beside 16.79). So, how do i calculate the Previous Value with a dynamic date interval? I hope you guys understand my problem statement&lt;span class="lia-unicode-emoji" title=":crying_face:"&gt;😢&lt;/span&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 11:45:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PREVIOUS-PERIOD-VALUE/m-p/3261743#M120660</guid>
      <dc:creator>KIlekun</dc:creator>
      <dc:date>2023-05-31T11:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: PREVIOUS PERIOD VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PREVIOUS-PERIOD-VALUE/m-p/3261804#M120666</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568874" data-lia-user-login="KIlekun" class="lia-mention lia-mention-user"&gt;KIlekun&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Previous Period GHI =
VAR CurrentYear =
    MAX ( 'Table'[End of Year] )
VAR T1 =
    ALLSELECTED ( 'Table'[End of Year] )
VAR T2 =
    ADDCOLUMNS (
        T1,
        "@GHI",
            VAR ThisYear = 'Table'[End of Year]
            RETURN
                CALCULATE ( [Global Hunder Index], 'Table'[End of Year] = ThisYear )
    )
VAR T3 =
    FILTER ( T2, 'Table'[End of Year] &amp;lt; CurrentYear &amp;amp;&amp;amp; [@GHI] &amp;lt;&amp;gt; BLANK () )
VAR T4 =
    TOPN ( 1, T3, 'Table'[End of Year] )
RETURN
    IF ( [Global Hunder Index] &amp;lt;&amp;gt; BLANK (), MAXX ( T4, [@GHI] ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 May 2023 12:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PREVIOUS-PERIOD-VALUE/m-p/3261804#M120666</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-31T12:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: PREVIOUS PERIOD VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PREVIOUS-PERIOD-VALUE/m-p/3263918#M120777</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;OH MY GOD it worked sooooo perfectly. Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 13:18:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PREVIOUS-PERIOD-VALUE/m-p/3263918#M120777</guid>
      <dc:creator>KIlekun</dc:creator>
      <dc:date>2023-06-01T13:18:28Z</dc:date>
    </item>
  </channel>
</rss>

