How to Use Power Query to Clean Quicken CSV Data for a PivotTable
Question details
The user needs to clean and transform a raw Quicken CSV export using Power Query to prepare the financial data for PivotTable analysis.

- Product
- Excel / Power Query
- Device & OS
- not provided
- Scenario
- Preparing and formatting raw financial export data from Quicken to generate structured PivotTable reports.
- Observed behavior
- The raw imported CSV contains unstructured date rows, blank rows, total rows, and financial records that must be systematically cleaned, filtered, and assigned week-ending dates.
Ensure you have exported your Quicken transaction data as a CSV file and saved it to an easily accessible local folder on your computer.
Use Power Query to Import and Transform CSV Data
Power Query allows you to automate the removal of blank rows, filter out unnecessary totals, and assign proper dates to financial records so the data is ready for PivotTable analysis.
By utilizing Power Query, you create a repeatable process. Once the cleaning steps are defined, future Quicken CSV exports can be cleaned instantly with a single refresh click.
Go to the Data tab, select 'Get Data' > 'From File' > 'From Text/CSV'. Locate your Quicken CSV file, select it, and click 'Transform Data' to open the Power Query Editor.
Click the filter dropdown arrow on your primary data column. Uncheck '(null)' values, blank strings, and any rows containing 'Total' or summary data to exclude them from the dataset.
If dates are isolated in specific rows above their respective transactions, select the date column, navigate to the Transform tab, and click 'Fill' > 'Down' to populate the dates for all underlying transaction rows.
To aggregate data weekly, select your date column, go to 'Add Column' > 'Date' > 'Week' > 'End of Week'. This automatically creates a new column with the week-ending date for each transaction.
Click the data type icon (e.g., ABC, 123) in the header of your financial columns and change the type to 'Currency' or 'Decimal Number'. Ensure date columns are set to 'Date'.
Once cleaned, click 'Close & Load' > 'Close & Load To...' from the Home tab. Select 'PivotTable Report' to directly import the transformed data into a new PivotTable.

Clean Financial CSV Data and Build PivotTables with WPS Spreadsheet
WPS Spreadsheet provides powerful built-in data filtering, text-to-columns tools, and robust PivotTable features to quickly organize and analyze your raw Quicken CSV exports without complex setups.
- 1. Import Data: Open WPS Spreadsheet, go to the Data tab, click 'Import Data', and select your Quicken CSV file to bring the raw data into a worksheet.
- 2. Clean the Rows: Select your data headers, click 'AutoFilter' under the Data tab, and uncheck blank rows and summary totals to hide or delete unnecessary data.
- 3. Add Week-Ending Dates: Insert a new column named 'Week Ending'. Assuming your transaction date is in cell A2, enter the formula '=A2+7-WEEKDAY(A2)' to calculate the Saturday week-ending date, and drag the formula down.
- 4. Insert PivotTable: Highlight your newly cleaned dataset, navigate to the Insert tab, and click 'PivotTable' to generate your financial report.

Frequently Asked Questions
Why does my Quicken CSV data format incorrectly when opened directly?
Opening a CSV directly by double-clicking can cause the spreadsheet application to misinterpret date and currency formats based on regional settings. Always use the 'Import Data' or 'Get Data' feature to specify the correct delimiters and data types during import.
Can I save my Power Query steps for future Quicken exports?
Yes, Power Query automatically records your transformation steps as 'Applied Steps' on the right panel. When you get a new CSV, you can simply overwrite the old file with the new one and click 'Refresh All' in your workbook.
How do I remove 'null' values in Power Query?
In the Power Query Editor, click the filter dropdown arrow on the column header containing the nulls, uncheck the box next to '(null)' or '(blank)', and click OK. This step will permanently filter those rows out of the loaded data.
How do I calculate a week-ending date without Power Query?
If you are using a standard spreadsheet, you can calculate a week-ending date (such as Saturday) by using the formula `=A2 + 7 - WEEKDAY(A2)`, assuming cell A2 contains your original transaction date.




