Power Query Problems

Use Excel Power Query and Power Pivot for Large Investment Data Models

Natalie TaylorNatalie Taylor Nov 14, 2026 870 views

Question details

Build a maintainable data model for large investment workbooks using Power Query and Power Pivot.

Product
Microsoft Excel Power Query and Power Pivot
Device & OS
not provided
Scenario
An investment-management workbook imports holdings, classifies securities, and summarizes account and household allocations.
Observed behavior
Repeated INDEX/MATCH array searches across thousands of rows are slow, and household updates require manual maintenance.
Before you start

Check that your Excel version supports Power Query, the Data Model, and Power Pivot; availability and menu names vary by version. Identify the security, account, and household keys in your source tables, and check that lookup keys are unique.

Solution 1Recommended

Create a Power Query and Power Pivot investment model

Use this approach to replace repeated worksheet lookups and manual consolidation with refreshable queries, relationships, and measures.

1
Prepare source tables

In Excel, select each source range and choose Insert > Table. Create separate tables for holdings, security classifications, accounts, households, and target allocations, using consistent ID columns.

2
Import and clean the data

Select a source table and choose Data > From Table/Range. In Power Query Editor, set appropriate data types, remove unnecessary columns, and use Home > Merge Queries to join security classifications to holdings by security ID. Expand the merged column to include the asset class.

3
Load tables into the Data Model

For each query, choose Home > Close & Load > Close & Load To. Select Only Create Connection and check Add this data to the Data Model. Load the holdings, accounts, households, and any other tables needed for reporting.

4
Create relationships

Open Power Pivot > Manage, switch to Diagram View, and relate matching ID columns. For example, link each holding to an account and each account to a household. Ensure the lookup side of each relationship has unique IDs.

5
Add measures and reports

In Power Pivot, create a measure such as Total Value := SUM(Holdings[MarketValue]), replacing the table and column names with your own. Choose Power Pivot > PivotTable and use household, account, and asset-class fields to summarize the measure.

6
Add targets and refresh

Load target allocations as a separate table and relate or summarize them at their intended level, such as household and asset class. Compare totals against the original workbook, then use Data > Refresh All after source data or mappings change.

Check relationship and target granularity: Avoid relating tables on nonunique IDs. Target allocations may need a unique combined household-and-asset-class key or a separate calculation so that targets are not duplicated across individual holdings.
Free Microsoft Office alternative

Review investment spreadsheets with WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface for opening and editing compatible Excel workbooks. It can help with a gradual move to WPS, but it does not replace Excel Power Query or Power Pivot when you need to build or refresh this model.

Open and edit Microsoft Excel XLSX and XLS spreadsheet filesReview account and asset-class data in a familiar spreadsheet interfaceUse a free, lightweight office suite for everyday workbook tasksWork with existing Office-format files while moving between applications
microsoft office alternative - wps office

Frequently Asked Questions

How do I enable Power Pivot in Excel?

If your Excel edition supports it, go to File > Options > Add-ins, select COM Add-ins in the Manage box, and click Go. Check Microsoft Power Pivot for Excel and select OK.

How can I update household assignments without editing every report?

Maintain account-to-household assignments in an account lookup table. Relate that table to holdings in Power Pivot, update the source table when assignments change, and choose Data > Refresh All.

Should I use a calculated column or a measure for account totals?

Use a measure for totals that should respond to PivotTable filters, such as a SUM of market value. Use a calculated column when you need a stored row-level result; Power Query can also create columns during import.

Why will Excel not create a relationship between two tables?

In Power Pivot > Manage > Diagram View, check that the related ID columns have compatible data types and that the lookup-side column contains unique values. Remove duplicates or create a separate lookup table if necessary.

Can WPS Office refresh the Excel Power Pivot model?

WPS Office can open many Excel-format workbooks, but it should not be relied on to build or refresh Excel Power Query and Power Pivot models. Use a supported version of Excel for those features and verify workbook behavior when switching applications.