add_calculated_field Methode
add_calculated_field(name, formula)
Fügt ein berechnetes Feld zum Pivot-Feld hinzu und zieht es in den Datenbereich.
def add_calculated_field(self, name, formula):
...
Parameter | Typ | Beschreibung |
---|---|---|
name | str | Der Name des berechneten Felds |
formula | str | Die Formel des berechneten Felds. |
add_calculated_field(name, formula, drag_to_data_area)
Fügt dem Pivot-Feld ein berechnetes Feld hinzu.
def add_calculated_field(self, name, formula, drag_to_data_area):
...
Parameter | Typ | Beschreibung |
---|---|---|
name | str | Der Name des berechneten Felds |
formula | str | Die Formel des berechneten Felds. |
drag_to_data_area | bool | Richtig, ziehen Sie dieses Feld sofort in den Datenbereich |
Siehe auch
- Modul aspose.cells.pivot
- Klasse PivotTable