I am currently using a pivot table which shows information regarding how much time an employee has worked, which is separated by week number. I would ideally like a GETPIVOTDATA formula to take this information and place it onto a dashboard screen, however only show the data from the past 5 weeks.
To get a week number, I am using a cell which has =TODAY() and then another one which uses =WEEKNUM() to provide a week number for that day. However in the GETPIVOTDATA formula, I can only get it to get data for a certain week (e.g. 21, rather than 21, 20, 19, 18 and 17). By using this method, I hope that the pivot data which is being extracted will automatically update based on today's date.
Does anyone know how to do this? The current formula which I am using is as below
To get a week number, I am using a cell which has =TODAY() and then another one which uses =WEEKNUM() to provide a week number for that day. However in the GETPIVOTDATA formula, I can only get it to get data for a certain week (e.g. 21, rather than 21, 20, 19, 18 and 17). By using this method, I hope that the pivot data which is being extracted will automatically update based on today's date.
Does anyone know how to do this? The current formula which I am using is as below
Code:
=(GETPIVOTDATA("Hrs+Travel",Pivots!$AA$2,"Week",21,"Name","Bill"))