Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
visual
New Member

Dynamic Comparison from Base date (Not Year)

Hi, 

 

I have two tables, dates and sales. 

 

Dates table = contains dates from 2013-2023. 

Sales table =  contains per day sales data of 12 products from January 1st, 2016 to-date.

 

I would like to make all current data comparable to 2016 as base date/year. I want to make  base period comparable e.g. if I want to check Feb 2018 data against Feb 2016, or Q2 of 2017 to Q2 of 2016. Any suggestions on how I can make it happen? 

 

I have seen other post https://community.powerbi.com/t5/Desktop/Year-over-base-year-growth/m-p/312339#M138498 but didn't work well. 

 

Any suggestions? 

 

 

1 ACCEPTED SOLUTION
visual
New Member

Found solution: 

 

Base = var _2016 = CALCULATE(SUM(Data), Dates[year]= 2016)
return _2016

 

I am able to use the measure with other calculations including % growth. I am also able to slice the data based on dates, months and quarter. 

View solution in original post

1 REPLY 1
visual
New Member

Found solution: 

 

Base = var _2016 = CALCULATE(SUM(Data), Dates[year]= 2016)
return _2016

 

I am able to use the measure with other calculations including % growth. I am also able to slice the data based on dates, months and quarter. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors