add_calculated_field method

add_calculated_field

Adds a calculated field to pivot field and drag it to data area.

def add_calculated_field(self, name, formula):
    ...
ParameterTypeDescription
namestrThe name of the calculated field
formulastrThe formula of the calculated field.

add_calculated_field

Adds a calculated field to pivot field.

def add_calculated_field(self, name, formula, drag_to_data_area):
    ...
ParameterTypeDescription
namestrThe name of the calculated field
formulastrThe formula of the calculated field.
drag_to_data_areaboolTrue,drag this field to data area immediately

See Also