# Goal Seek

In the last section, we looked into what-if analysis and simulations, which involved modifying or simulating one or more input values to obtain new output values or the row grand total.

Goal Seek is also a type of What-if analysis, except in this method, we specify the desired output or goal value to calculate the necessary input value to achieve the goal.

## Configuring Goal Seek

Let us take an example, where the product revenue is calculated by multiplying the unit price by the number of units sold. To apply Goal Seek, we need a calculated measure on which we set a target value and a data input measure that can be changed to achieve the target. In this case, we have 3 measures involved.

* Revenue: Calculated measure
* Unit Price: Native measure
* Units Sold: Data input measure

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FssVhN1Ax9gcQ6YZBntJg%2Fimage.png?alt=media&#x26;token=6b2492b7-8eb1-424d-8c79-948a51618e3f" alt=""><figcaption><p>Calculated measure on which Goal Seek can be applied</p></figcaption></figure>

The revenue for the 'Preseware Air Conditioner' cell highlighted in the report is 1.27m. Let's look at how to apply Goal Seek and set a target of 1.75m for this cell.

Now, for the desired **Revenue** to be achieved through Goal Seek, we will choose to change one of its drivers - the **Units Sold,** which is a data input column. Note that you can change only one driver at a time. The **Unit Price** is a native measure and cannot be changed with Goal Seek.

**STEP 1:** Click on the required cell and select **Insert -> Goal Seek.** The Goal Seek pop-up window opens.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2Fox9qqGCOo8xaFpkhpTCU%2Fimage.png?alt=media&#x26;token=2b3299c7-19dc-40d2-88fa-a84989b1874a" alt=""><figcaption><p>Goal seek window</p></figcaption></figure>

{% hint style="info" %}
The Goal Seek option is enabled only when you click on a cell containing a formula or aggregation like sum, product, etc.
{% endhint %}

**STEP 2:** In the pop-up window, enter the desired goal value of 1.75m.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FxksLnyWyw8Xz5ztGPuCh%2Fimage.png?alt=media&#x26;token=7b1ce8dd-5718-44aa-a4c0-1af9d2c37ddd" alt=""><figcaption><p>Enter the goal value</p></figcaption></figure>

**STEP 3:** Verify the target cell and its underlying formula. If you have multiple data input measures being used in the formula, you need to select the driver measure. In this case, we only have a single data input measure; let's choose **Units Sold** since we want to adjust the quantity sold to reach the desired revenu&#x65;*.*&#x20;

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2Fk617IH7z8eRdxtCxrVtv%2Fimage.png?alt=media&#x26;token=ef522c12-94c0-4ac0-883a-5e7be8ca074e" alt=""><figcaption><p>Select the data input measure to be changed</p></figcaption></figure>

**STEP 3:** Click **Run** and then **Apply** to make the changes.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FRKq5h2h71LFoSQGGpe2M%2Fimage.png?alt=media&#x26;token=72895306-3860-4940-8c79-94d1e1913e6a" alt=""><figcaption><p>Apply Goal Seek</p></figcaption></figure>

Notice how the units sold measure is updated from 92 to 127 to achieve the target revenue of 1.75m.&#x20;

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FSHHArYZf8ohqecWJRM5Z%2Fimage.png?alt=media&#x26;token=0a0f893e-0681-4ae1-acdf-5d9b686fc93e" alt=""><figcaption><p>Goal Seek applied</p></figcaption></figure>
