Create Calculated Field or Measure

Overview

The Ad-Hoc Editor allows custom calculations to be added by applying formulas to a view’s existing Field or Measure.   Numerous functions and operators are available for selection when building your custom calculation.  Begin by selecting the Create Calculated Field/Measure Calculated Measureicon to access the Create Calculated Field or Create Calculated Measure in the Fields / Measures sections respectively.

 

Create Calculated Field

 

Measures

 

DOCUMENTATION NOTE:  The following images in this topic will show images  for Measures, however, the same steps apply to creating a custom calculated Field.  

The New Calculated Measure / New Calculated Fields window opens.  This window is where you create a calculated Field or Measure and set its summary function. 

New Calculated Measure / New Calculated Field

For example, consider the Req and PO View which includes a PO Actual Amount and PO Account Segment Amount.   You can compare values and calculate the difference for each record by creating a custom field that subtracts the Account Segment Amount from the Actual Amount.

In the sample image below, I have created the following formula to identify the difference between the two values:

Calculated Measure

The result of your calculation may be added to your report.

Custom Field

The custom calculation appears in the Fields or Measures panel as indicated by the custom icons for Calculated Field Calculated Fieldor Calculated MeasureCalculated Measureicons.

Right-click to access the context menu that allows you to edit, add as a Column, add as a Field, Create Filter and more.

Key Point

Formula Builder Tab

The Formula Builder tab is where you create the formula for your calculated Field or Measure.  This tab includes the following:

Summary Calculation Tab

Summaries show a result applied to all data values.  For example, for a numeric Measure such as Unit Price, the summary value might be the sum of all the Unit Prices; for a text field such as Vendor Name, the summary value might be the count of all vendors.  The Summary tab lets you set the default summary function for your calculated Field or Measure.  

Planning and Testing Calculated Fields and Measures

When you are creating calculated fields and measures, you may need to follow an iterative process: first create your new fields and measures, then view the results, and finally adjust as needed. The following practices can help:

After you have created your Fields and Measures, add them to a Table or Crosstab in your view and verify that they behave as you expect. You may need to edit your fields to get the desired behavior.

In addition, keep the following in mind when creating calculated fields:

 

 

POWERED BY PROACTIS