Forum

Notifications
Clear all

Excel Slicers for Rolling Periods for weeks

8 Posts
2 Users
0 Reactions
98 Views
(@raja_jatli)
Posts: 8
Active Member
Topic starter
 

Hi i have seen your post for pivot for the rolling slicers for the month but how can we do it for the week if we have custom week start for the year. i.e Like my business year start for 2 July 17 and  i want the rolling chart for the last 12 weeks. how can i do that please help. Thanks file is attached.

 
Posted : 21/06/2018 12:16 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Ahemed,

No file attached, but you just need to change the value 365 in the formula to 84, representing the number of days in 12 weeks, and modify the text:

=IF(today-[@Date]<84,"Last 12 Weeks",">12 Weeks")

 

Mynda

 
Posted : 21/06/2018 9:39 pm
(@raja_jatli)
Posts: 8
Active Member
Topic starter
 

Hi mandy, 

 

Thanks you very much for the reply however, one thing my date are start of the week dates and when i use the formula you have provided it does not work it only give me last then 12 week.

 

please see the attached file. 

 

Regards

 
Posted : 22/06/2018 6:13 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Ahemed,

In the attached file your formula references cell S2, but this cell is empty so it's interpreted as 0 by the formula. Cell S2 should contain the date that you want to test against. e.g. today, yesterday, end of last week, whatever you want your last 12 weeks calculated from.

Also, the cell reference to S2 is not an absolute reference, so when you copy the formula down it doesn't stay fixed on S2.

Mynda

 
Posted : 22/06/2018 7:05 pm
(@raja_jatli)
Posts: 8
Active Member
Topic starter
 

Hi Thanks for this could you please add the formula in it and send it to me, i will really appreciate this. 

 
Posted : 23/06/2018 10:03 am
(@raja_jatli)
Posts: 8
Active Member
Topic starter
 

I am struggling to fix it. 

 
Posted : 23/06/2018 10:03 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Ahemed,

In the attached file all of your dates were in the last 12 weeks so I changed the date in row 2 to show the formula works.

Mynda

 
Posted : 25/06/2018 2:21 am
(@raja_jatli)
Posts: 8
Active Member
Topic starter
 

Great thanks for your help all working. 

 
Posted : 26/06/2018 6:48 am
Share: