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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.