---
sourceDocument: Australia Strategic Portfolio Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/it-business-management

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Strategic Portfolio Management

ft:clusterId :

    - itbm

bundleId :

    - itbm

workflow :

    - Technology


---

# Create scripted allocation metrics - Legacy

# Create scripted allocation metrics - Legacy {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

You can create scripted metrics and methods using the standard Cost Allocation Metric
form.

## Antes de Iniciar

Role required: cost_transparency_admin

## Por Que e Quando Desempenhar Esta Tarefa

You can create weighted metrics in scripted form and scripted methods [Allocation metrics - Legacy](https://servicenow-prod.fluidtopics.net/NarS7~RO_txSc21AkwZM2g "Allocation metrics contain additional instructions that the application uses to allocate expenses based on a weighted calculation or on a script. Allocation methods use metrics to perform the allocation.") for more information.

## Procedimento

1. Navigate to AllFinancial ModelingConsumption MetricsCreate Scripted Weighted Metric.
2. Click New.
3. Select Scripted weighted metric or Scripted method in the Type field.
4. Fill out the fields on the form as appropriate (see table).
5. Click Submit.  
   Figura 1. Example scripted metric  
   {#t_CreateScriptedAllocationMetrics__table_pf2_prf_xq__entry__2}

   | 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. |
   [Tabela 1. Scripted metric form fields]

   {#t_CreateScriptedAllocationMetrics__table_pf2_prf_xq} {#t_CreateScriptedAllocationMetrics__table_xzw_k23_fdc__entry__2}

   | 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. |
   [Tabela 2. Related List section of the Scripted metric form]

   {#t_CreateScriptedAllocationMetrics__table_xzw_k23_fdc}  
   Nota:  
   You cannot delete a rule that is referenced by a locked allocation line.

