Add and Run Data Action
Objective
After completing this lesson, you will be able to add and run the Data Action within a Story.
- If your copy of Admin_StoryRebates is not already open, navigate to Main Menu > Files > My Files, then select your copy of Admin_StoryRebates to open it.

- Select Edit to allow changes to the Story.

- Under the main toolbar under Insert, select the + icon, then select Starters > Data Action Starter.

-
In the Builder panel, enter the following information for the Data Action Starter:
- Label: Calculate Rebates
- Description: Calculate Rebates
- Data Action (dropdown): Admin_DA_Rebates
- Target Version Input: Leave as default “Prompt”

- Position the Data Action Starter button on top of the PnL table by dragging and dropping it.

- Save the Story by selecting the Save icon > Save.

- Select View to put the Story in View mode.

-
In the Input Controls select the following:
- Date - Jan (Q1/2020)
- Products - Sun (under First Person Star)
Click Apply Selections under both Input Controls after each selection to update the data in the table with your selections.

- Enter 0.10 (10%) in the Rebate % account for United States and hit the return key.

- Select the Run button on the Calculate Rebates Data Action Starter.

- Click the Select Target Version icon.

- Select public.Forecast as the Target Version. Then click OK.

- Select the Run button.

- You can see that the Rebates account has been filled in and has been calculated based on the assumption of 10% that we entered earlier in the Rebate % cell for the United States. The values in the cells under Net Income have all been adjusted to refelct the Rebate % change that has been run on the table.

- If your copy of Admin_StoryRebates is not already open, navigate to Main Menu > Files > My Files, then select your copy of Admin_StoryRebates to open it.

- Select Edit to allow changes to the Story.

- Under the main toolbar under Insert, select the + icon, then select Starters > Data Action Starter.

-
In the Builder panel, enter the following information for the Data Action Starter:
- Label: Calculate Rebates
- Description: Calculate Rebates
- Data Action (dropdown): Admin_DA_Rebates
- Target Version Input: Leave as default “Prompt”

- Position the Data Action Starter button on top of the PnL table by dragging and dropping it.

- Save the Story by selecting the Save icon > Save.

- Select View to put the Story in View mode.

-
In the Input Controls select the following:
- Date - Jan (Q1/2020)
- Products - Sun (under First Person Star)
Click Apply Selections under both Input Controls after each selection to update the data in the table with your selections.

- Enter 0.10 (10%) in the Rebate % account for United States and hit the return key.

- Select the Run button on the Calculate Rebates Data Action Starter.

- Click the Select Target Version icon.

- Select public.Forecast as the Target Version. Then click OK.

- Select the Run button.

- You can see that the Rebates account has been filled in and has been calculated based on the assumption of 10% that we entered earlier in the Rebate % cell for the United States. The values in the cells under Net Income have all been adjusted to refelct the Rebate % change that has been run on the table.
