I have the following tables:
Revenue
Branch
Date
I have a table viz with branch name, % over last year for revenue
Here, my calculations are correct and numbers are correct as per requirement. DAX I am using:
% over Last Year = IFERROR(
([Revenue 2019 YTD] / [Total Revenue 2018 for YTD]) -1,
BLANK())
Problem: For 3 branches, these branches were acquired mid-year on 2018 and only has data from July of 2018. When I am calculating data for % over last year, the numbers are incorrect for these branches as they only had partial data on 2018 and complete data ( Jan to current month) in 2019.
I need help on how I can calculate the % over last year also while considering the min date of 2018 for some branches that were acquired mid-year in 2018.