cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Reply
Frequent Visitor

Roolling previous weeks

Hi team,

 

Best way to calculate "sales" for current Week, Last week, -2 weeks...and so on? Considering weeks starts on Monday. I have read many about, but withouth a clear idea of how to do. 

 

A table as example.

 

 

DATEDAYWEEKNUMSALES
26/12/2020sรก52140 โ‚ฌ
27/12/2020do52150 โ‚ฌ
28/12/2020lu53160 โ‚ฌ
29/12/2020ma53170 โ‚ฌ
30/12/2020mi53180 โ‚ฌ
31/12/2020ju53190 โ‚ฌ
01/01/2021vi1200 โ‚ฌ
02/01/2021sรก1210 โ‚ฌ
03/01/2021do1220 โ‚ฌ
04/01/2021lu2230 โ‚ฌ
05/01/2021ma2240 โ‚ฌ
06/01/2021mi2250 โ‚ฌ
07/01/2021ju2260 โ‚ฌ
08/01/2021vi2270 โ‚ฌ
09/01/2021sรก2280 โ‚ฌ
10/01/2021do2290 โ‚ฌ
11/01/2021lu3300 โ‚ฌ
12/01/2021ma3310 โ‚ฌ
    
    
 sales current week3610 โ‚ฌ
 sales last week21.820 โ‚ฌ
 sales -2 week1630 โ‚ฌ
 sales-3 week53700 โ‚ฌ

 

I really apreciate for help!

1 ACCEPTED SOLUTION
Super User IV
Super User IV

@ADRICHECKIN , Using week rank in Date table, You can try.

Refer my Power BI โ€” Week on Week and WTD  blog and video
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Super User IV
Super User IV

@ADRICHECKIN , Using week rank in Date table, You can try.

Refer my Power BI โ€” Week on Week and WTD  blog and video
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Thank you very much. Easy, simple and work perfectly!

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2โ€“4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors