Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
83 | |
69 | |
68 | |
39 | |
37 |