Configuration Experiment #V6
Goal
The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a production workspace and enter some configuration. When asked to write down something, please copy the value to a document (along with the step #), as you will be using those values later on.
Difficulty
Easy.
Preparation
Create a CSV file with the following:
- Date,Unique ID,Owner,Revenue,Customer
- 2021-01-01,ID-1,Daniel Martinez,100,A
- 2021-02-01,ID-2,Daniel Martinez,100,B
- 2021-03-01,ID-3,Daniel Martinez,1000,C
- 2021-04-01,ID-4,Daniel Martinez,1000,D
As you can see, there are transactions in January, February, March, and April. All transactions are assigned to "Daniel Martinez".
Steps
- Go to Account > My Workspaces
- Create a production workspace
- Go to Users > Add Users
- Add a user with email DanielMartinez@xyz.com
- Go to Transactions > Add Transactions
- Import your CSV file
- Go to Plans > All Plans
- Create plan "Test"
- Choose "Monthly"
- Choose "By Individual"
- Choose "All Workspace Users"
- Choose "Revenue" > "Raw Value"
- Add a global reward with the following formula
- Create the plan
- Go to the Custom tab
- Enter values for the @@Bonus custom variable for Jan, Feb, March, April
- Save plan changes
- Go to Calculations > All Calculations
- Run a calculation for January 2021
- What is the payout?
- Notice that the payout is the value for Jan only
- Run a calculation for February 2021
- What is the payout?
- Notice that the payout is the value for Feb only
- Run a calculation for March 2021
- What is the payout?
- Notice that the payout is the value for March only
- Run a calculation for April 2021
- What is the payout?
- Notice that the payout is the value for April only
- Go to Plans > All Plans
- Edit plan "Test"
- Go to the Incentives tab
- Change the global reward formula to the following
- Save plan changes
- Go to Calculations > All Calculations
- Delete all calculations
- Run a calculation for January 2021
- What is the payout?
- Notice that the payout is the sum of values for Jan + Feb + March (but not April)
- Run a calculation for February 2021
- What is the payout?
- Notice that the payout is the sum of values for Jan + Feb + March (but not April)
- Run a calculation for March 2021
- What is the payout?
- Notice that the payout is the sum of values for Jan + Feb + March (but not April)
- Run a calculation for April 2021
- What is the payout?
- Notice that the payout is the sum of values for April only
Key Learnings
- It's possible to reference custom variables with prefixes other than just @@
- Ex: #+ means "sum all values within the calculation quarter"
- Ex: !+ means "sum all values within the calculation year"
- For example, a customer may only enter monthly value for @@Quota (because this customer has monthly plans)
- However, if they want to also create a quarterly bonus plan, they can sum in-quarter monthly values using #+Quota
- They don't need to define another variable called @@QuarterlyQuota since we can sum values for them using the #+ prefix
Related Articles
Configuration Experiment #V5
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...
Configuration Experiment #V3
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...
Configuration Experiment #V2
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...
Configuration Experiment #V1
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...
Configuration Experiment #V4
Goal The goal of this experiment is to help you understand how to use custom variables in your configuration. For this challenge, you will use a demo workspace and enter some configuration. When asked to write down something, please copy the value to ...