
1 - Define the metric. ENter metric and amount data types.
2 - Creat a new rolluo field.
3 - Specify the rollup field to track against goals.
4 - Specify details about the source data the rolls up.
5 - Specify the date field that determines the goal period that the records will roll up into.
References:
https://docs.microsoft.com/en-us/dynamics365/customer-engagement/sales-enterprise/create-edit-goal-metric