Create What-If scenarios
Refer to the following example code to see how to add different scenarios in a worksheet. This demo adds multiple scenarios to the worksheet by modifying the discount rates and quantities sold.