Calculate percentage
Function: Calculate percentage
This action helps you determine what proportion one number represents of another, expressed as a percentage. It's useful for understanding ratios, progress, or shares in a clear, standardized way.
Input,
- Part (NUMBER): This is the specific value or amount for which you want to find the percentage. It's the portion of the whole you are interested in.
- Whole (NUMBER): This is the total or reference value against which the 'Part' is being compared. It represents the entire amount.
Output,
- Result (NUMBER): The name of the variable where the calculated percentage will be stored. By default, this variable will be named "PERCENTAGE".
Execution Flow,
Real-Life Examples,
Here are some practical ways you can use the "Calculate percentage" action:
-
Calculating Sales Commission Rate:
- Scenario: You want to find out what percentage of total sales a salesperson's commission represents.
- Inputs:
- Part:
500(The commission earned by the salesperson) - Whole:
10000(The total sales made by the salesperson) - Result:
CommissionRate
- Part:
- Result: A variable named
CommissionRatewill be created with the value5.0. This means the commission earned is 5% of the total sales.
-
Tracking Project Completion:
- Scenario: You need to show the completion status of a project based on the number of tasks finished versus the total tasks.
- Inputs:
- Part:
75(Number of tasks completed) - Whole:
100(Total number of tasks in the project) - Result:
ProjectProgress
- Part:
- Result: A variable named
ProjectProgresswill be created with the value75.0. This indicates the project is 75% complete.
-
Determining Discount Percentage:
- Scenario: You want to calculate the percentage discount applied to an item.
- Inputs:
- Part:
20(The discount amount in dollars) - Whole:
100(The original price of the item in dollars) - Result:
DiscountPercentage
- Part:
- Result: A variable named
DiscountPercentagewill be created with the value20.0. This shows that a 20% discount was applied.