You need to sign in to do that
Don't have an account?
Babaganoush
How to generate a monthly revenue breakdown using start end dates on Opportunity object?
The Opportunity object has project start and end dates along with total revenue. Need a way so that user can see a month by month breakdown with revenue divided over each month.
For example if start date is 05/2018 and end date is 07/2018 with revenue of 90,000 USD then one should be able to see three columns one for May, June, and July and with 30,000 in each column as a breakdown for revenue. The user should have ability to enter an override for the revenue for each month.
Is there some built in functionality or revenue forecasting type plugin that would work better?
For example if start date is 05/2018 and end date is 07/2018 with revenue of 90,000 USD then one should be able to see three columns one for May, June, and July and with 30,000 in each column as a breakdown for revenue. The user should have ability to enter an override for the revenue for each month.
Is there some built in functionality or revenue forecasting type plugin that would work better?
As VisualForce, generically speaking, what you'll need to do is create a custom controller for your "Revenue Report" on Opportunity. The class would be an extension of Opportunity that would also enclose the results in a wrapper. Your controller would begin by getting the start and end dates from your page then run a query that's grouped by each time period you want to use and put the results into a "wrapper class".
You'd then output those results in a table on a VisualForce Page using an <Apex: repeat> tag. The html for the page would look something like this:
May I suggest you please find the sample code below and tweak it as per the requirement which should help you further. With the above, you could potentially have multiple start and end dates if chose to, causing the table to get longer with each period rather than wider. This should give you a good starting point. Your query would also want to roll-up any opportunities for the period on each account if you don't want to need to group and sum them (a pita if you do).
Hope this helps.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
But You can try to create a report also it may work if you just want to show the data