<?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: Filter data based on prior year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-based-on-prior-year/m-p/2122138#M48645</link>
    <description>&lt;P&gt;Years are just numbers. I think you just need to adjust the formatting for the column to no commas and 0 decimal places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 16:36:52 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2021-10-07T16:36:52Z</dc:date>
    <item>
      <title>Filter data based on prior year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-based-on-prior-year/m-p/2122064#M48642</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my table I added a new column I inserted the below formula :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prior Year&lt;/STRONG&gt; = IF(‘Table1’[Column1].[Date]&amp;lt;TODAY(),'Date Dimension'[PriorYearEndDate].[Year],TODAY().[Year])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to implement the above formula in order to filter my data based on prior year but wasn’t successful and when I deleted the year part as highlighted above [Year], it got implemented but it didn’t give the correct results as &lt;STRONG&gt;&lt;U&gt;years&lt;/U&gt;&lt;/STRONG&gt; instead it gave me the &lt;STRONG&gt;&lt;U&gt;numbers&lt;/U&gt;&lt;/STRONG&gt; as&amp;nbsp; the below image in filters section. So as a result I need to see years in the filter section not Numbers. !!&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 15:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-based-on-prior-year/m-p/2122064#M48642</guid>
      <dc:creator>tameismael</dc:creator>
      <dc:date>2021-10-07T15:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data based on prior year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-based-on-prior-year/m-p/2122138#M48645</link>
      <description>&lt;P&gt;Years are just numbers. I think you just need to adjust the formatting for the column to no commas and 0 decimal places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 16:36:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-based-on-prior-year/m-p/2122138#M48645</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-10-07T16:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data based on prior year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-based-on-prior-year/m-p/2122139#M48646</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="324221" data-lia-user-login="tameismael" class="lia-mention lia-mention-user"&gt;tameismael&lt;/a&gt; , Not very clear, what you want to achieve here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need this year vs last year flag&lt;/P&gt;
&lt;P&gt;Year Type = Switch( True(),&lt;BR /&gt;year([Date])= year(Today()),"This Year" ,&lt;BR /&gt;year([Date])= year(Today())-1,"Last Year" ,&lt;BR /&gt;Format([Date],"YYYY")&lt;BR /&gt;) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need measures refer&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Year on Year with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=km41KfM_0uA" target="_blank"&gt;https://www.youtube.com/watch?v=km41KfM_0uA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 16:37:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-based-on-prior-year/m-p/2122139#M48646</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-10-07T16:37:07Z</dc:date>
    </item>
  </channel>
</rss>

