Average in Reports to exclude current week
Hi, We have some KPIs that are measured on a weekly basis. I have a sheet that calculates weekly totals. When I pull a report to see weekly averages on a 4 week or 3month basis, Monday morning the totals are skewed because the totals for the current week hasn't accumulated yet. Is there something I can do in the report to not count the current week in the average?
Best Answer
-
@ginamt3 Since the report function doesn't have a current week filter you'd need to add a helper column on the source sheet(s). There could be several examples but one would be something like a hidden column named "Current Week". In that column you could put a formula such as =if(weeknumber(date@row)=weeknumber(Today()),"Yes","No")
This would put a yes on any row that the date reflected today's week. Then on your report you'd add a filter that said if the helper column equals "No" or didn't equal "Yes".
If you need it to span years and weeks (so that the 25 week of 2024 and 2025 etc didn't all get highlighted as a yes, you'd need to add the year to the formula. Something similar to:
=if(and(weeknumber(date@row)=weeknumber(Today()),year(date@row)=year(today())),"Yes","No")
Certified Platinum Partner
Answers
-
@ginamt3 Since the report function doesn't have a current week filter you'd need to add a helper column on the source sheet(s). There could be several examples but one would be something like a hidden column named "Current Week". In that column you could put a formula such as =if(weeknumber(date@row)=weeknumber(Today()),"Yes","No")
This would put a yes on any row that the date reflected today's week. Then on your report you'd add a filter that said if the helper column equals "No" or didn't equal "Yes".
If you need it to span years and weeks (so that the 25 week of 2024 and 2025 etc didn't all get highlighted as a yes, you'd need to add the year to the formula. Something similar to:
=if(and(weeknumber(date@row)=weeknumber(Today()),year(date@row)=year(today())),"Yes","No")
Certified Platinum Partner
-
Thank you! updated it and it worked like a charm.
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives