Build Data Action
Objective
- Select Main Menu > Data Actions.

- Select the Data Action tile to create a new Data Action.

-
Enter Admin_DA_Rebates for the Name and Description.
-
Click on the Default Model drop-down and select PnL_Admin_New (or the model you copied in the previous section - PnL_CH3 for Data Actions Module) as the default model.

- Click on the Save Data Action icon, then Save.

- The Name and Description will already be populated with what was entered in the previous steps, so you can just select the Save button to Save.

- Select the Add Advanced Formulas Step icon.

-
Enter Calculate Rebates for the formula Name and Description.
-
Under Variable select the + icon then Calculation.

- In the Target select All.

- In the Target Scope dialg box select + Add.

- Select Accounts.

- As shown in image below, drill down through the members list and select PL011 Rebates. Then select OK.

- Select OK again.

- We will now set the Source Scope. Select the + icon within Expression.

- Select Source Scope.

- In Source select All.

- Click +Add

- Click Accounts

- As shown in image below, drill down through the members list and select PL010 Product Sales. Then select OK.

- Select OK again.

- Select the + icon to the right of the Source then select Source Scope.

- In the second Source select All.

- Select + Add.

- Select Accounts.

- As shown in screenshot below, select KP003 Rebate %. Then select OK.

- Click + Add.

- Select Organization.

- Select Unassigned. Then select OK.

- Click OK again

- Click on the operator between the two Source Scopes to change it from an addition (+) operator to a multiplication (x) operator.

- Select the x.

- Your Data Action should now look like this:

- Select the Save icon to save your Data Action.

Optional exercise - Create an AI generated script
Another feature that is available when creating Data Actions is the Just Ask AI functionality, to automatically create your script with the click of a button.
- Select the Script tab.

- Copy and paste the following comment into the editor to highlight the fact that it is an AI generated:
AI generated script

- On the next line copy and paste the following comment:
calculate rebate = product sales * rebate%

- Then highlight the whole comment line and select the Generate Script button.

- Wait a moment for the AI to generate the script for you.

- You will see the script has been generated and you have the option to Accept or Reject what the AI has created.

- Select Main Menu > Data Actions.

- Select the Data Action tile to create a new Data Action.

-
Enter Admin_DA_Rebates for the Name and Description.
-
Click on the Default Model drop-down and select PnL_Admin_New (or the model you copied in the previous section - PnL_CH3 for Data Actions Module) as the default model.

- Click on the Save Data Action icon, then Save.

- The Name and Description will already be populated with what was entered in the previous steps, so you can just select the Save button to Save.

- Select the Add Advanced Formulas Step icon.

-
Enter Calculate Rebates for the formula Name and Description.
-
Under Variable select the + icon then Calculation.

- In the Target select All.

- In the Target Scope dialg box select + Add.

- Select Accounts.

- As shown in image below, drill down through the members list and select PL011 Rebates. Then select OK.

- Select OK again.

- We will now set the Source Scope. Select the + icon within Expression.

- Select Source Scope.

- In Source select All.

- Click +Add

- Click Accounts

- As shown in image below, drill down through the members list and select PL010 Product Sales. Then select OK.

- Select OK again.

- Select the + icon to the right of the Source then select Source Scope.

- In the second Source select All.

- Select + Add.

- Select Accounts.

- As shown in screenshot below, select KP003 Rebate %. Then select OK.

- Click + Add.

- Select Organization.

- Select Unassigned. Then select OK.

- Click OK again

- Click on the operator between the two Source Scopes to change it from an addition (+) operator to a multiplication (x) operator.

- Select the x.

- Your Data Action should now look like this:

- Select the Save icon to save your Data Action.

Optional exercise - Create an AI generated script
Another feature that is available when creating Data Actions is the Just Ask AI functionality, to automatically create your script with the click of a button.
- Select the Script tab.

- Copy and paste the following comment into the editor to highlight the fact that it is an AI generated:
AI generated script

- On the next line copy and paste the following comment:
calculate rebate = product sales * rebate%

- Then highlight the whole comment line and select the Generate Script button.

- Wait a moment for the AI to generate the script for you.

- You will see the script has been generated and you have the option to Accept or Reject what the AI has created.
