function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lreedlreed 

Two aggregate result queries

I need to query an object for the sum of a currency field for the current year.  I also need to query this same object for the sum of a currency field for the the previous year.  I would then use to to display the fields in the same table on VF Page and use to calculate Year over Year Value.
The data is in a custom object.    I am currentlly using a wrapper to bring in the current years currency fields  plus fields from the contact object into one table on the VF Page.

Any assistance would be greatly appreciated.