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
vskreddy46
Regular Visitor

Week vise comparison sales for the last 3 years

i got one scenario as below we are having the sales report for the last 3 years by week.

for example 2018,2019 years is having the 52 weeks 2020  is having the 53 weeks.

 

my client is not willing to see the 0 as sales values for the 53rd week. so what was the best method to handle this values.

3 REPLIES 3
v-caliao-msft
Employee
Employee

@vskreddy46,

 

As smoupre said, if you use WeekNumber = WEEKNUM('Table'[Date]) to return your week number, then every year has 53 weeks.
Capture.JPGCapture1.JPGCapture2.JPG

 

Regards,

Charlie Liao

Hi Charlie Liao,

My Calender is having from feb 1st Sunday to the Next year  jan Last Saturday 

 

for example:

FY2016:- jan 31st 2016 to 28th Jan 2017

FY 2017:- Jan 29th 2017 to jan 27th 2018

 

Thanks 

Saran

Greg_Deckler
Super User
Super User

How are you doing your WEEKNUM calculation? If I create a calendar table for 2010 to 2020, all years have 53 weeks.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.