SumIfs#
Description:
Sum values based on inputs and group. It will return a new table.
Function:
SumIfs(table = string, cols = list, sum_col = string, new_table_name = string)
Parameters:
Table: Table name on which to perform function
Columns: Columns that you wish to group
Sum Column: Value column you wish to return the Sum
New Table Name: Name for new table
Example:
Pivot_Table(table = Budget, cols = ["Geo"], rows = ["Business Unit"], agg_group = {value = "Actual", method = "sum"}, new_table_name = "Pivot")
Date |
Geo |
Business |
Plan |
Actual |
|---|---|---|---|---|
8/1/2024 |
Asia-Pacific |
Energy |
800 |
750 |
7/1/2024 |
Middle East & Africa |
Healthcare |
1200 |
900 |
5/1/2024 |
Latin America |
Manufacturing |
900 |
800 |
9/1/2024 |
Asia-Pacific |
Technology |
1500 |
1300 |
11/1/2024 |
Latin America |
Energy |
2000 |
1800 |
Business Unit |
Actual_Asia-Pacific | Actual_Latin America | Actual_Middle East |
|||
|---|---|---|---|---|
Energy |
750 |
1800 |
||
Healthcare |
900 |
|||
Manufacturing |
900 |
|||
Technology |
1300 |
|||