Power Query Lesson 10: Project — A Monthly Refresh Pipeline

📎 This article includes 3 downloadable practice files ↓

⏱ 2 min read

📘 Power Query Beginner Course · Lesson 10 of 10

In this article
  1. The pipeline
  2. Check the numbers
  3. Refresh next month
  4. You’ve finished the course
  5. Practice

This project strings the course together into what offices actually need: a report that rebuilds itself. At the end, adding next month’s data takes one file copy and one click.

The pipeline

  1. Source: From Folder on the monthly folder (Lesson 6). Filter to .csv files named sales_*.
  2. Clean in the Transform Sample File query: promote headers, trim text, set types with English (India) locale for dates (Lessons 1-3).
  3. Audit column: keep Source.Name, extract the month from it.
  4. Merge Products on ProductCode, expand Product and Category (Lesson 5). Add a Left Anti check query listing unmatched codes.
  5. Add columns: FY, FYQuarter, Month (Lesson 9); Size band (Lesson 8).
  6. Name the query Sales and the steps clearly (right-click › Rename).
  7. Load: Close & Load To › Only Create Connection + tick Add this data to the Data Model.
  8. Report: Insert › PivotTable › From Data Model: Region in rows, Month in columns, Amount summed; add a slicer for Category.

Check the numbers

The expected-results workbook lists the KPIs (6 files, 180 orders, total sales and best region) and a month × region grid. Your pivot should match.

💡 Add a small ‘Checks’ query: Group By Source.Name with row counts and totals, loaded to a sheet. After each refresh, a glance shows whether a file was missing or half-empty.

Refresh next month

  1. Save the October CSV into the folder.
  2. Data › Refresh All.

Optionally tick Refresh data when opening the file (Query Properties) so the report is always current.

⚠️ If you share the workbook, colleagues need access to the same folder path. Put the folder on SharePoint/OneDrive and use ‘From SharePoint Folder’, or the refresh fails on their PCs.

You’ve finished the course

You can import, clean, reshape, merge, combine, group and enrich data with Power Query, and build a pipeline that refreshes itself. The same skills work in Power BI Desktop, which is the next course.

Practice

Download the source file(s) and the expected-results workbook below. Build the query in Excel (Data › Get Data), load it to a sheet, and compare your row count and totals with the Checks sheet.

📎 Practice files for this article

  • 🗂️
    pq-monthly-files.zipSix monthly sales CSVs; unzip into a folder.
    ⬇ ZIP · 4 KB
  • 📗
    pq-05-products.xlsxProduct master for the merge step.
    ⬇ XLSX · 5 KB
  • 📗
    Expected resultsWhat your query should produce, with check totals.
    ⬇ XLSX · 6 KB

Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *