<?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 Latest year &amp;amp; Previous Latest Year - Filtered by Report Year &amp;amp; Quarter. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-year-amp-Previous-Latest-Year-Filtered-by-Report-Year-amp/m-p/3219962#M117673</link>
    <description>&lt;P&gt;I am trying to display in a clustered column chart visual the current/latest year data as well as previous latest year data but govern by a "Report" year &amp;amp; quarter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select Report year "2022" and "Qrt 4", I want it to filter to the current and previous data based on Report years. For example, my results on my visual would be " 1" (with 2011 being the latest year data on record) and "3" (with 2010 being the latest year data on record)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select Report year "2021" and "Qrt 4", my results on my visual would be " 3" (with 2010 being the latest year data on record) and "2" (with 2011 being the latest year data on record).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;I am currently using the following measure:&lt;/P&gt;&lt;P&gt;Latest year &amp;amp; previous latest year = VAR ReferenceDate = MAX ('Date'[Date])&lt;/P&gt;&lt;P&gt;VAR PreviousDates = DATESINPERIOD (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Previous Date'[Date], ReferenceDate, -2, YEAR )&lt;/P&gt;&lt;P&gt;VAR Result = CALCULATE ( [Total Confirmed],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REMOVEFILTERS ( 'Date' ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEPFILTERS ( PreviousDates ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USERELATIONSHIP ('Date'[Date],'Previous Date'[Date]))&lt;/P&gt;&lt;P&gt;RETURN Result&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If anyone could help - that would be appreciate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://drive.google.com/drive/folders/1OtvkxXd8mnAXSSGGwW0xi8yvb_NJRbf1?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/drive/folders/1OtvkxXd8mnAXSSGGwW0xi8yvb_NJRbf1?usp=sharing&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://www.dropbox.com/scl/fo/fsuaprxpodazygfe6excd/h?dl=0&amp;amp;rlkey=2wkn4jgx3fqtcd3pjmiqki7g0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/scl/fo/fsuaprxpodazygfe6excd/h?dl=0&amp;amp;rlkey=2wkn4jgx3fqtcd3pjmiqki7g0&lt;/A&gt;&lt;/EM&gt;&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;</description>
    <pubDate>Thu, 04 May 2023 12:46:41 GMT</pubDate>
    <dc:creator>matrix_user</dc:creator>
    <dc:date>2023-05-04T12:46:41Z</dc:date>
    <item>
      <title>Latest year &amp; Previous Latest Year - Filtered by Report Year &amp; Quarter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-year-amp-Previous-Latest-Year-Filtered-by-Report-Year-amp/m-p/3219962#M117673</link>
      <description>&lt;P&gt;I am trying to display in a clustered column chart visual the current/latest year data as well as previous latest year data but govern by a "Report" year &amp;amp; quarter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select Report year "2022" and "Qrt 4", I want it to filter to the current and previous data based on Report years. For example, my results on my visual would be " 1" (with 2011 being the latest year data on record) and "3" (with 2010 being the latest year data on record)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select Report year "2021" and "Qrt 4", my results on my visual would be " 3" (with 2010 being the latest year data on record) and "2" (with 2011 being the latest year data on record).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;I am currently using the following measure:&lt;/P&gt;&lt;P&gt;Latest year &amp;amp; previous latest year = VAR ReferenceDate = MAX ('Date'[Date])&lt;/P&gt;&lt;P&gt;VAR PreviousDates = DATESINPERIOD (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Previous Date'[Date], ReferenceDate, -2, YEAR )&lt;/P&gt;&lt;P&gt;VAR Result = CALCULATE ( [Total Confirmed],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REMOVEFILTERS ( 'Date' ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEPFILTERS ( PreviousDates ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USERELATIONSHIP ('Date'[Date],'Previous Date'[Date]))&lt;/P&gt;&lt;P&gt;RETURN Result&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If anyone could help - that would be appreciate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://drive.google.com/drive/folders/1OtvkxXd8mnAXSSGGwW0xi8yvb_NJRbf1?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/drive/folders/1OtvkxXd8mnAXSSGGwW0xi8yvb_NJRbf1?usp=sharing&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://www.dropbox.com/scl/fo/fsuaprxpodazygfe6excd/h?dl=0&amp;amp;rlkey=2wkn4jgx3fqtcd3pjmiqki7g0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/scl/fo/fsuaprxpodazygfe6excd/h?dl=0&amp;amp;rlkey=2wkn4jgx3fqtcd3pjmiqki7g0&lt;/A&gt;&lt;/EM&gt;&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;</description>
      <pubDate>Thu, 04 May 2023 12:46:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-year-amp-Previous-Latest-Year-Filtered-by-Report-Year-amp/m-p/3219962#M117673</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2023-05-04T12:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Latest year &amp; Previous Latest Year - Filtered by Report Year &amp; Quarter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-year-amp-Previous-Latest-Year-Filtered-by-Report-Year-amp/m-p/3223336#M117946</link>
      <description>&lt;P&gt;If your fact data doesn't have date level granularity then you can designate a substitute date, for example the first day of the year, or the first day of the quarter.&amp;nbsp; That will allow you to properly link to the Calendar table, and to use the built-in time intelligence functions.&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 19:57:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-year-amp-Previous-Latest-Year-Filtered-by-Report-Year-amp/m-p/3223336#M117946</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-05-06T19:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Latest year &amp; Previous Latest Year - Filtered by Report Year &amp; Quarter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-year-amp-Previous-Latest-Year-Filtered-by-Report-Year-amp/m-p/3228082#M118304</link>
      <description>&lt;P&gt;Thank you Ibendlin,&lt;/P&gt;&lt;P&gt;I have included calculated columns. I am still lacking the ability to pull data from previous report for sameperiod.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 03:19:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Latest-year-amp-Previous-Latest-Year-Filtered-by-Report-Year-amp/m-p/3228082#M118304</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2023-05-10T03:19:44Z</dc:date>
    </item>
  </channel>
</rss>

