March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
I have to Dynamically calculate average sales for last 5 weeks last year , i.e
Current week = 40 and current year 2017
so I want
last year 5 weeks average = week 41(2016) to week37(2016)/ 5
same way every week I am able to dynamically caluclate average to compare with sales
Please advice me
Thanks
Hi @Anonymous,
Shouldn't last 5 weeks of the previous year be week36 to week40?
Hey,
I'm sorry, but I need a little more information how to calculate the measure you require, can you please explain how you "find" the timeframe of the 5 weeks for the last year?
My assumption
What is your expectation if the current week is the 2nd week of the year, would you expext, that the time frame
This is important information how to determine the measure to calculates the average sales for the last 5 weeks last year.
Regards
Tom
Sorry for late reply, In my model I don't have Date Table. Secondly, I did not calculate the time frame for last year 5 weeks.
Hey, can you please explain how you did define the timeframe for the 5 weeks last year?
Regards
Tom
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
157 | |
97 | |
79 | |
69 |