I have a custo object Business. and i have a field 'Amount' on this object. On Account i want to display average of this 'Amount' field. I have created a Roll Up on Account but it was giving only Count , SUM,MIN,MAX. Then How to calculate Average? for this
How about this: 1) Create a Rollup Summary field: Sum 2) Create another Rollup Summary: Count 3) Create a formula field: Sum/count. Display Avg on the page layout
Hi Anvesh,
Currently this feature is not available, please vote for the idea below,
https://success.salesforce.com/ideaView?id=08730000000igfrAAA
Regards,
Ashish
Hi Anvesh,
You can also create an Apex Trigger to update the field. See the sample code below,
http://www.anthonyvictorio.com/salesforce/roll-up-summary-trigger/
http://blog.elieperez.net/salesforce-lookup-roll-up-summary/
http://pranavmarathe.blogspot.in/2012/02/salesforce-simple-roll-up-summary-using.html
Regards,
Ashish
1) Create a Rollup Summary field: Sum
2) Create another Rollup Summary: Count
3) Create a formula field: Sum/count.
Display Avg on the page layout