You need to sign in to do that
Don't have an account?
Pankaj Yadav 29
Every Fiscal Year Mean's example
List<AggregateResult> agr = [Select Sum(Amount), Calendar_Year(createdDate) From Account Where isClosed=true And id=:userinfo.getuserId() Group By Calendar_Year(createdDate)]; Map<Integer, decimal> mapdetail = new Map<String, decimal>(); for(AggregateResult a : agr) { mapdetail.put((Integer)a.get('expr1'), (Decimal) a.get('expr0')); } System.debug('sum of the year'+mapdetail);
What is the challenge you are facing in this scenario?