<?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 Rows of Dim Column for Previous Year's Data to Only Include Row's Existing in Current Year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Rows-of-Dim-Column-for-Previous-Year-s-Data-to-Only/m-p/2414059#M63694</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="298673" data-lia-user-login="cARLOSPERALTA" class="lia-mention lia-mention-user"&gt;cARLOSPERALTA&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you provide the data description or pbix file ? This may help us deal with your problem more easily.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 06:00:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-24T06:00:18Z</dc:date>
    <item>
      <title>Filter Rows of Dim Column for Previous Year's Data to Only Include Row's Existing in Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Rows-of-Dim-Column-for-Previous-Year-s-Data-to-Only/m-p/2399725#M62735</link>
      <description>&lt;P&gt;Hello PBI Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to calculate the growth of sales based on Countries. I have about 50 countries in my dimension table, and a fact table that has data per week. Since not all countries data's are available at the same time for the the current year data, and that my client doesn't want to wait until we have all the countries available to show the data, I have a miscalculation in my growth number because I'm calculating the available countries for this year vs. All the countries available last year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find a solution that would filter the previous year's data based on the countries available for the current period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Carlos P.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.carlosperalta.dev" target="_blank"&gt;www.carlosperalta.dev&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 06:40:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Rows-of-Dim-Column-for-Previous-Year-s-Data-to-Only/m-p/2399725#M62735</guid>
      <dc:creator>cARLOSPERALTA</dc:creator>
      <dc:date>2022-03-17T06:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rows of Dim Column for Previous Year's Data to Only Include Row's Existing in Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Rows-of-Dim-Column-for-Previous-Year-s-Data-to-Only/m-p/2399980#M62756</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="298673" data-lia-user-login="cARLOSPERALTA" class="lia-mention lia-mention-user"&gt;cARLOSPERALTA&lt;/a&gt; , if you have year and week.&lt;/P&gt;
&lt;P&gt;You need create a year week table with Key [Year]*100 +[week] to join with data and week/date table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;//Only year vs Year, not a level below&lt;/P&gt;
&lt;P&gt;This Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))&lt;BR /&gt;Last Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year]) &amp;amp;&amp;amp; 'Date'[Week] = Max('Date'[Week]) ))&lt;BR /&gt;Last year same week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])-1 &amp;amp;&amp;amp; 'Date'[Week] &amp;lt;= Max('Date'[Week])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not help&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 08:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Rows-of-Dim-Column-for-Previous-Year-s-Data-to-Only/m-p/2399980#M62756</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-17T08:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rows of Dim Column for Previous Year's Data to Only Include Row's Existing in Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Rows-of-Dim-Column-for-Previous-Year-s-Data-to-Only/m-p/2401279#M62852</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no issue to get my previous year's data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is that I have to get my previous year's data only for my countries available in 2022.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in 2022, Canada, USA and Belgium is available but in 2021 Canada, USA, Belgium, France, Germany and Japan are available. So to calculate growth, I only have to consider&amp;nbsp;Canada, USA and Belgium, which are the markets available in the current period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 16:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Rows-of-Dim-Column-for-Previous-Year-s-Data-to-Only/m-p/2401279#M62852</guid>
      <dc:creator>cARLOSPERALTA</dc:creator>
      <dc:date>2022-03-17T16:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Rows of Dim Column for Previous Year's Data to Only Include Row's Existing in Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Rows-of-Dim-Column-for-Previous-Year-s-Data-to-Only/m-p/2414059#M63694</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="298673" data-lia-user-login="cARLOSPERALTA" class="lia-mention lia-mention-user"&gt;cARLOSPERALTA&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you provide the data description or pbix file ? This may help us deal with your problem more easily.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 06:00:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Rows-of-Dim-Column-for-Previous-Year-s-Data-to-Only/m-p/2414059#M63694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-24T06:00:18Z</dc:date>
    </item>
  </channel>
</rss>

