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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
geejaysantiago
Frequent Visitor

Compare previous and new sales (weekday 1st sunday of 2017 with 1st sunday of 2016)

Hi been trying to compute sales comparison based on days of the week.. 

 

example: 1st Sunday of 2017 = January 1, 2017

1st Sunday of 2016 = January 3, 2016

 

2016 has 53 weeks while 2017 has 52 weeks. i need a formula that will consider this as well.

 

I was able to get same date even months but really having a hard time with weekly comparison. my data is built this way

 

in one table i have the following:

datecompany namesalestransaction count

 

calendar table:

dateday of calendarday of monthday of week day of yearmonth of calendarmonth of quartermonth of yearquarter of calendarquarter of yearweek of calendarweek of monthweekday of monthweeknumyear of calendar

 

what i need to create is

sales current (1st Sunday 2017)sales last year (1st Sunday of 2016)% variance

 

hope you can help me out.

 

 

 

 

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @geejaysantiago,

 

It would be better that you can elaborate your requirement with examples using some sample data.

 

Do you want to compare the sales value between 1st Sunday in 2017 and 1st Sunday in 2016, then, 1st Monday in 2017 and 1st Monday in 2016......2nd Suanday in 2017 and 2dn Sunday in 2016, ect. Or do you want to compare the sales value by weekly, like 1st week in 2017 and 1st week in 2016, then, 2nd week in 2017 and 2nd week in 2016, etc?

 

Regards,
Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.