[GNC] how to total up all "stock transactions" in a year

Mattia Rizzolo mattia at mapreri.org
Wed Aug 21 14:06:33 EDT 2024


On Wed, Aug 21, 2024 at 10:43:44AM -0700, Stephen M. Butler wrote:
> I presume you have an asset account that holds all these transactions --
> most likely a parent account.  If so, I would add the "Total (Period)"
> column on the accounts tab.  That way you have nothing further to do and
> have the number available at all times for instant inspection.

That I do, however that column seems to hold also changes in the value
of the assets therein (I believe?), whilst I only need the actual
purchase/sell price.

> The other option is to do a transaction report to pick the relevant accounts
> (and their children) for the current (or specified) year and maybe just ask
> for the grand total.

Mhh this might have been much easier than I thought it would be…

Trying it out I can indeed have what I was looking for.  I probably need
to filter things a bit but I am seeing a final value that is off by
single-digit EUR from what I manually counted so it's indeed great.

Thank you for the suggestion!

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
More about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


More information about the gnucash-user mailing list