Filter Rows of Dim Column for Previous Year's Data to Only Include Row's Existing in Current Year
Hello PBI Community,
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.
I need to find a solution that would filter the previous year's data based on the countries available for the current period.
My issue is that I have to get my previous year's data only for my countries available in 2022.
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 Canada, USA and Belgium, which are the markets available in the current period.