MaxIfs#
Description:
Max values based on inputs and group. It will return a new table.
Function:
MaxIfs(table = string, cols = list, max_col = string, new_table_name = string)
Parameters:
Table: Table name on which to perform function
Columns: Columns that you wish to group
Max Column: Value column you wish to return the Max values
New Table Name: Name for new table
Example:
MaxIfs(table = Budget, cols = ["Geo"], max_col = "Actual", new_table_name = "MaxIfs")
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 |
Geo |
Actual |
|---|---|
Asia-Pacific |
1300 |
Middle East & Af. |
900 |
Latin America |
1800 |