Realized creates a tax lot to maintain the cost basis for each separate equity or mutual fund purchase.
Any sales of shares from a tax lot will reduce the number of shares within the lot.
Realized automatically matches each sale with a tax lot if you use FIFO (first-in, first-out) as your cost basis method.
If you prefer, you may also make a specific identification of the cost basis of each stock sold.