[]
This function is used to calculate the percentage of a subset of data relative to the entire dataset. It is particularly useful when combined with the GROUPBY and PIVOTBY functions to return percentages.
PERCENTOF(data_subset, data_all)
The function has following arguments.
Argument | Description |
|---|---|
data_subset (Required) | The values in the subset of data you want to analyze. |
data_all (Required) | The values that make up the entire set. |
PERCENTOF(Sales_2019, Total_Sales)