<?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 Dynamic Year Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Year-Measure/m-p/3083869#M107647</link>
    <description>&lt;P&gt;Jolly Day,&lt;BR /&gt;&lt;BR /&gt;I currently have my visual set to just give me year 2021. I am wanting it to automatically update going two years back so I need it set to year 2022 when we begin year 2024. Is there a way to accomplish this? I created a year column that just parsed the year from my date so we also have the full date to work with. Any help with this would be greatly appreciated!&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;Thanks in advance,&lt;BR /&gt;Idon'tquitegotthepowerBI&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2023 18:56:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-16T18:56:07Z</dc:date>
    <item>
      <title>Dynamic Year Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Year-Measure/m-p/3083869#M107647</link>
      <description>&lt;P&gt;Jolly Day,&lt;BR /&gt;&lt;BR /&gt;I currently have my visual set to just give me year 2021. I am wanting it to automatically update going two years back so I need it set to year 2022 when we begin year 2024. Is there a way to accomplish this? I created a year column that just parsed the year from my date so we also have the full date to work with. Any help with this would be greatly appreciated!&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;Thanks in advance,&lt;BR /&gt;Idon'tquitegotthepowerBI&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 18:56:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Year-Measure/m-p/3083869#M107647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-16T18:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Year Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Year-Measure/m-p/3084968#M107758</link>
      <description>&lt;P&gt;You could create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Year for TOPN =
VAR ChosenYear =
    SELECTEDVALUE ( 'Date'[Year] )
RETURN
    IF ( ChosenYear &amp;lt;= YEAR ( TODAY () ), ChosenYear )
&lt;/LI-CODE&gt;
&lt;P&gt;and then add a TOPN filter to your visual on the Year column using this measure as the value and set it to only show the top 2&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 12:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Year-Measure/m-p/3084968#M107758</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-17T12:22:15Z</dc:date>
    </item>
  </channel>
</rss>

