Merging Multiple Portfolio Files Into One

When I first started using this app years ago I kept different portfolio files for things like my partner and I’s 401ks and our “fun” portfolio accounts, etc. What I’m now lacking is the full picture. These days I am good enough with the filters that I could now see that keeping everything in one portfolio file makes more sense.

What I’m lacking is understanding the mechanics of merging these portfolio files into one new one. Is there some way to merge the portfolios through some export/import trick? Will I need to recreate all of the accounts and securities and then just manually export transactions as a CSV and import into the new portfolio file?

Thanks for any help!

I’ve opened a PR that adds support for merging multiple Portfolio Performance files into a new combined file.

The idea is simple: select multiple files, merge them into one new file, and keep existing references consistent where possible.
Matching securities are reused conservatively to avoid incorrect merges, while ambiguous entries may still remain duplicated.

Important: this currently creates a new merged file and does not merge data into the currently opened file in place. Dashboards are intentionally ignored for now, and taxonomies are not merged yet.

This is really cool that you had a PR already for it. If I find some time maybe I’ll try to build the repo and try out your branch. I ended up going the manual route.

Here’s what I did in case anyone ever runs into a similar issue.

I had 4 *.portfolio files. I ended up picking the most complex one and merged the 3 other ones into that one.

  1. I followed this post to migrate the securities into the target portfolio by doing the drag-and-drop trick. This kept all of the history and worked great.
  2. I manually created the Deposit Accounts and Securities Accounts in the target portfolio. Making sure to keep the account names and reference accounts matching exactly.
  3. I exported via File > Export > CSV Files and exported both Account Transactions and Securities Accounts Transactions. Hint: you can double-click Account Transactions and Securities Accounts Transactions parent tree item and it’ll export everything to a folder.
  4. From the Securities Account tab, I right-clicked each securities account and clicked "Import CSV” and selected the corresponding transaction file from step 3. Doing the import this way seemed to be the easiest, with the mappings coming up correctly.
  5. From the Deposit Account tab, I right-clicked each account and clicked “Import CSV” and selected the corresponding transaction file from step 3. When you review the transactions you’ll see duplicates that the import tool already caught so when you hit Finish you won’t see duplicate transactions.

I had tried importing via other ways such as File > Import but didn’t really have good success there. Also importing security transactions first seemed to make the process go better. This at least got me to a point where I could leverage Account Groups correctly and rebuild my performance dashboard pages.