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
Anonymous
Not applicable

Last 4,12 and 26 week Sales

Hello,

 

I have 2 columns in my sheet sales amount and weekending date. I need to calculate sales amount for last 4 weeks, 12 weeks and 26 weeks and compare the same with previou year last 4 weeks, 12 weeks and 26 weeks. I tried few ways looking at similar posts before and looks like it is not working. I need to calculate it based on weeknumber because the iso week number for a given date this year is different to previous year same date value. Attaching the excel and pbix files. So for weekending 2/25/18 last 4 week sales amount should be 275 and last 12 weeks is 780 and Last 4 weeks previous year is 280. Appreciate the help.

4 REPLIES 4

Hi,

 

As far as i can tell, there is no ISOWEEKNUM() function in the Query Editor or the PowerPivot.  May be someone else can shed some light on this.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

If not ISOWeek may be regular weeknum will work too.  

Hi,

 

You may download my solution from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.