You can have Quicken program recalculate all the transactions in an investment register. This technique can be used whenever there appears to be discrepancies with investment calculations or reports.
If a report is displaying unexpected results for investment accounts or categories, you should check the report setup before recalculating the investment register.
Caution: If the recalculation finds lot information is missing or damaged, it will automatically assign lots on a First In First Out basis (FIFO); if you have used a different basis for assigning lots you may get better results by deleting and then reentering all of the Sell transactions for the security in question.
Copy your Quicken data file, and then open the new copy you created. Once it is opened follow the instructions below.