Scenario 3

Following the successful rollout of these data forms, John is asked to implement the next policy, which is to ensure that this year’s Budget amounts are not significantly higher than previous year’s Actual amounts. If the difference is greater than 5%, then flag the difference in red.

John decides to use a member with a member formula to calculate the variance between this year’s Budget and the previous year’s Actual amount. He adds this member formula:

@varper(@Prior("Actual", 1, @Relative("Year", 0)), budget)/100;

John designs the data form and adds a data validation rule at cell level, as shown in the following figure. He uses Member Name to apply the validation only to Total Cost.

Data Form Layout at Design Time:

Data Form Layout at Design Time

Data Validation Rule at Design Time:

Data Validation Rule at Design Time

Data Form at Data Entry Time with Data Validations Applied:

Data Form at Data Entry Time with Data Validations Applied

Tips:

For additional scenarios, see Data Validation Rule Scenarios.