You need to sign in to do that
Don't have an account?
Bryn Jones
Total Value of Opportunites in VF page
I would like to display the total value of all opportunities closed this month in a visual force page. I am having troubling figuring out how to write the code for this...
Bryn
Bryn
sample:
Date filterDate = date.newinstance(system.now().year(), system.now().month(),1);
AggregateResult ar = [select sum(amount) total from opportunity where closedate >= :filterdate and isclosed=true];
system.debug(ar.get('total'));
I have built a company dashboard and i would like to get the total value of closed opportunites this month on there. Right now the controller is Account as we enter our sales in an account specially built for our KPI's and i have built sales and target dials from those numbers....
how do you do aggregate query of all opportunitoesa cross the whole SF.com site for all accounts.
I really want to sort of duplicate the SalesLeaderboard by InsightSquared from the appexchange....this will help you understand what i mean....
Thanks for the quick responce...
Bryn
Bryn