Yes, you can filter pivot tables by week with one working approach: use the "Time Periods" field list feature in Excel or Google Sheets, or apply a date-based filter with dates spanning the entire week in Power BI. The method differs slightly by tool, but each works without requiring advanced Excel skills. What you’ll need is a date column linked to your data, and the ability to create a pivot table from it.

What You'll Need

  • A pivot table created from a data source with a date column (or a column containing week numbers).
  • Excel (for Microsoft Office), Google Sheets, or Power BI Desktop.
  • Basic familiarity with pivot table row/column fields (how to drag fields into rows, columns, or values).
  • Labels may vary slightly by version, device, or region—check your tool’s help menu if unsure which method applies.

Step-by-Step

Using Excel

  1. Prepare your data: Ensure your pivot table includes a date column (or a week number column). If your dates are stored as text or incorrect, convert them to dates using Data > Text to Columns (Excel 2010+).
  2. Create the pivot table: If you haven’t already, go to Insert > PivotTable and select your data range. Drag the date column into the Rows area of the pivot table layout.
  3. Use the "Time Periods" field list:
    1. Right-click the pivot table header for your date column (e.g., "Date").
    2. Select Field Settings.
    3. Under Item List, choose Time Periods from the drop-down menu.
    4. This will automatically populate weeks (or months if the date column isn’t set to a time series).
  4. Filter by week: Click the dropdown arrow next to the date column header. A list of weeks (YYYY-W# format) will appear. Select the specific week(s) you want to analyze.

Using Google Sheets

  1. Ensure your date column is formatted correctly: Click the date column header and choose Format > Number > Date. Select the appropriate date format (e.g., "YYYY-MM-DD").
  2. Create the pivot table: Go to Data > Create PivotTable, select your data range, and click Create. Drag the date column into the Rows area.
  3. Use the "Time Periods" filter:
    1. Right-click the pivot table header for your date column.
    2. Choose Filter > Time Periods. Google Sheets will filter by weeks automatically.
    3. Select the specific week(s) from the filter dropdown.
  4. Alternative (manual filtering): If the "Time Periods" filter isn’t available, manually filter your data source:
    1. Right-click the date column in your data source (not the pivot table) and select Create a new filter.
    2. Click the dropdown arrow next to the date column and choose Week (or Weekday if needed).

Using Power BI Desktop

  1. Load your data and create a pivot table: Import your data into Power BI. Right-click the data table and select Add to Visuals > Pivot Table. Drag the date column to the Rows field.
  2. Filter by week using DAX or visual filters:
    1. Right-click the date column header in the pivot table and choose Format > Filter.
    2. Use the Week Number or Week Start Date to filter by specific week ranges.
  3. Alternative: Use a date table (advanced):
    1. Create a date table in Power Query (Transform > Add Column > Date Table).
    2. Merge this table with your main data and use the Week Number or DateTime fields to filter.

Common Mistakes

  • Using text instead of dates: If your date column contains text (e.g., "Jan 1, 2023"), Excel/Google Sheets may not display weeks correctly. Fix this by converting dates to the correct format before creating the pivot table.
  • Inconsistent date ranges: If your data spans multiple years or weeks, ensure the "Time Periods" filter or manual filter includes the full date range. Otherwise, weeks may appear missing or misaligned.
  • Power BI: ignoring the date table: Without a properly structured date table, Power BI may not recognize weeks accurately. Always validate the date format before creating filters.

Tips

  • Excel/Google Sheets: If the "Time Periods" filter isn’t available, try manually filtering the date column in your data source (e.g., select "Week" under the date column’s dropdown). This works even if the pivot table doesn’t support it.
  • Power BI: For dynamic week filtering, create a calculated column that extracts the week number (e.g., `WEEKNUM([DateColumn])`) and use it in your pivot table’s row fields.
  • Combining filters: In Excel, you can filter by multiple weeks or overlapping time periods by holding Ctrl (Windows) or Cmd (Mac) while selecting weeks in the dropdown.
  • Check for errors: If weeks aren’t showing, verify your data source isn’t filtered or sorted incorrectly. Right-click the date column in the pivot table and select Sort & Filter > Sort to reset sorting.

Troubleshooting

If none of the steps above work, try these troubleshooting steps in order:

  1. Restart your tool: Close and reopen Excel, Google Sheets, or Power BI. Sometimes cached data prevents filters from working.
  2. Update your software: Ensure you’re using the latest version of Excel, Google Sheets, or Power BI. Outdated versions may have bugs in pivot table filtering.
  3. Check for hidden dates: If your data includes blank or hidden rows, the pivot table may skip weeks. Go to Data > Remove Hidden Rows (Excel) or File > Manage Workbook > Hidden Rows (Power BI) to inspect.
  4. Recreate the pivot table: Delete the existing pivot table and recreate it from scratch. Old filter settings may be causing issues. In Power BI, go to File > New > Pivot Table (or Insert > PivotTable).
  5. Contact support (last resort): If all else fails, check the tool’s help center for region-specific issues. For example, Excel may handle week numbering differently in some countries. Alternatively, export your data to a third-party tool like Tableau for more advanced filtering.

Frequently Asked Questions

How do I filter a pivot table by week in Excel if "Time Periods" isn’t an option?

Instead of "Time Periods," manually filter your data source (not the pivot table) by selecting "Week" under the date column’s dropdown. Right-click the date column > "Filter > Week." This method works in all Excel versions.

Why isn’t my pivot table showing all weeks in Google Sheets?

Google Sheets may not display full week ranges if the date field isn’t properly formatted. Right-click the date column > "Format > Number > Date" and select the correct format (e.g., "YYYY-MM-DD"). Then refresh the pivot table and try filtering again.

How can I filter a pivot table by week in Power BI if the date column doesn’t include week numbers?

Create a calculated column in Power Query that extracts the week number (e.g., `WEEKNUM([DateColumn])`). Drag this new column into your pivot table’s row fields. This ensures Power BI recognizes weeks dynamically.

What if my pivot table only shows a few weeks instead of all available weeks?

Check for hidden data in your source table. Go to Data > Remove Hidden Rows (Excel) or File > Manage Workbook > Hidden Rows (Power BI) to ensure no rows are filtered out. Alternatively, verify your pivot table’s row fields include the entire date range.

Can I filter a pivot table by week in Google Sheets using a dynamic range?

Yes! Use a helper column with the week number (e.g., `=WEEKDAY([DateColumn])`). Then filter this column in your pivot table by selecting "Week" from the dropdown. This method works even if the original date column is dynamic.

How do I ensure my pivot table’s week filter shows overlapping weeks?

In Excel, hold Ctrl (Windows) or Cmd (Mac) while selecting multiple weeks from the dropdown. In Power BI, use a calculated column with a function like `WEEKNUM([DateColumn])` and filter by a range of weeks (e.g., 50-55).