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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to calculate previous week sales?

Hi All,

 

I have Date Slicer, by selecting the date i need to show Current week sales and Previous week sales (Both the reports are in different sheets)

 

For Example: If i select 19-6-2020, it shoud show the data for 19-6-2020 and 12-6-2020(previous week)

and if i select 12-6-2020, it should show the data for 12-6-2020 and 5-6-2020.

please help me.

 

Please find the below sample, if i select Date, then if i click on current report it should view current report and for the same date if i select previous report it should view previous report.

Annotation 2020-06-19 082737.png

 

Kindly help me with the requirement.

 

Thanks!

Suresh.

1 REPLY 1
lbendlin
Super User
Super User

Does your dates table have week numbers?

If not, what do you consider a week?

If you compare this week to last week, isn't that unfair?  Don't you want to compare the values week to date?  (Say, if today is friday and the week starts monday, then you only want to compare to last week's monday to friday)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.