You can create scripted metrics and methods using the standard Cost Allocation Metric
form.
Avant de commencer
Role required: cost_transparency_admin
Pourquoi et quand exécuter cette tâche
You can create weighted metrics in scripted form and scripted methods Allocation metrics - Legacy for more information.
Procédure
Navigate to All > Financial Modeling > Consumption Metrics > Create Scripted Weighted Metric.
Click New.
Select Scripted weighted metric or Scripted
method in the Type field.
Fill out the fields on the form as appropriate (see table).
Click Submit.
Figure 1. Example scripted metric
Tableau 1. Scripted metric form fields
Field
Description
Name
Descriptive name of the metric.
Allocation group
The group associated with this metric. On the Cost Allocation Method form, the selection of the group limits the selection of the metric to only those metrics that use the group.
System metric
If this metric was created by the application in the workbench.
Type
The type of script. Select Scripted method or Scripted weighted metric to make the Script field appear.
Script
The script to calculate the allocation.
Tableau 2. Related List section of the Scripted metric form
Field
Description
Cost Allocation Methods
Methods that use the metric. You can add methods to the related list or navigate to the method form and select the metric you just created.
Remarque :
You cannot delete a rule that is referenced by a locked allocation line.