# Budgeting & allocations

Inforiver Premium Table provides an intuitive way of performing planning, budgeting, and allocations through an editable table interface. You can create a new plan/budget based on an existing data series or from scratch (zero-based budgeting). You can spread data entered on a grand total cell to all the rows, based on weights from other measures.&#x20;

## 1. Creating a series

Let's first look at the ways of creating a new series.

### 1.1. From scratch (ZBB)

Let’s assume that we need to create a zero-based budget.&#x20;

This can be achieved by creating a data input column as mentioned in the section [create a numeric input column](https://docs.inforiver.com/premium-table/4.-adding-business-logic-and-formulae/insert-manual-input-columns/insert-manual-input-columns#1.-create-a-column). The result is shown in the image below.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FmzSB1rdnZdHxjThEsXM7%2Fimage.png?alt=media&#x26;token=7cf46fac-2509-497a-a935-fd2888012608" alt=""><figcaption><p>Creating an empty data input measure</p></figcaption></figure>

### 1.2. Based on an existing series&#x20;

Let’s take an example where we would like to create a budget based on the plan or the most recent forecast.

This can be achieved by creating a data input column as shown below.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FOHfSDycV1FmS6JSOfxZs%2Fimage.png?alt=media&#x26;token=47cbedd3-fd2e-4d4b-959a-7146fcc4a7a5" alt=""><figcaption><p>Creating a data input column based on existing data</p></figcaption></figure>

A column is created as shown below based on the forecast.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2Fe8wES3CDYkQCXWdADx1J%2Fimage.png?alt=media&#x26;token=c80a2946-3d16-4649-a83d-8b0952f65e41" alt=""><figcaption><p>Data input column based on existing data</p></figcaption></figure>

## 2. Allocate totals

In this example, let's consider a zero-based budget. Enter a value of 125m in the formula bar by double-clicking on the grand total cell.&#x20;

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FCt9qahMOuQtMqZVRidm3%2Fimage.png?alt=media&#x26;token=514d646e-dea9-44a6-bf01-0f014fe54ea7" alt=""><figcaption><p>Enter grand total to allocate</p></figcaption></figure>

There are two ways to allocate the value entered in the **total cell** - [equally](#i-equal) or [based on weights](#ii-weight).

{% hint style="info" %}
[**Sum**](https://docs.inforiver.com/premium-table/manage-aggregations#sum) is the only [row aggregation type](https://docs.inforiver.com/premium-table/4.-adding-business-logic-and-formulae/insert-manual-input-columns/insert-manual-input-columns#i-row-aggregation-type) that allow allocations/distributions from total cells to the child rows.
{% endhint %}

### 2.1. Equal

After entering the value in the formula bar, press Enter. By default, the values get distributed equally across all rows.&#x20;

Note that the values have been rolled up to the grand total cell.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FfZKY6rCmLnVeW4iTy9HR%2Fimage.png?alt=media&#x26;token=482dd920-8722-49cf-bbd8-22bc3df65b49" alt=""><figcaption><p>Equal distribution</p></figcaption></figure>

### 2.2. Weight

In this case, we don't need an equal distribution. We need to allocate the budget proportionally based on the actual sales.&#x20;

* Click on the context menu appearing on the grand total cell with the value 125m and choose ‘Distribute by weights of Actual Sales’.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FL1aWGKIWFfotSOu05kzJ%2Fimage.png?alt=media&#x26;token=5cc4f8be-df05-4253-baa3-27a53b7b820f" alt=""><figcaption><p>Distribution based on prior data values</p></figcaption></figure>

* Once this option is selected, the budget values for each row are automatically updated based on their relative contribution to 'Actual Sales'.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2F2LPqK3GGWnuiu9ZO8hCj%2Fimage.png?alt=media&#x26;token=c688467c-8cb2-46d1-9fd1-9ca7ac428eb0" alt=""><figcaption><p>Value gets redistributed based on actual sales' weights</p></figcaption></figure>

## 3. Lock values

Values in data input columns can be locked at a cell level. The cells that are locked are not affected by any of the allocation methods.

{% hint style="info" %}
Report users will be able to lock and unlock cells in read view. They will not however be able to unlock cells that were locked by the report author.
{% endhint %}

### 3.1. Lock a cell

Consider the following business case: There is an overall budget for the upcoming year that must be distributed to the categories based on actual sales. However, certain subcategories have a fixed budget, whose values must be updated and retained whenever any allocations are made.&#x20;

Let's say the budgets for *Bluetooth headphones* and *laptops* are 1m and 20m, respectively.

This can be easily achieved using the Premium Table as shown below.&#x20;

Note that we [added a numeric data input column](#id-1.1.-from-scratch-zbb) for the budget, [entered it as 125 million](#id-2.-allocate-totals), and then distributed the values [based on the weights](#id-2.2.-weight) of actual sales.

* Double-click on the *Bluetooth headphones'* budget cell and update the value as shown below.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FCU4H3btOWw2zRttVu8Kc%2Fimage.png?alt=media&#x26;token=8557bfb7-7ec8-4282-a07e-18fae13f727f" alt=""><figcaption><p>Updating a cell value</p></figcaption></figure>

* After you press enter, go to the context menu and select **Lock this cell**.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FNp442EJlxZN6EcNoaY8f%2Fimage.png?alt=media&#x26;token=fa135512-88de-4069-9baa-bc2d3bf4b46e" alt=""><figcaption><p>Locking a cell</p></figcaption></figure>

* The cell is greyed out, indicating that it is locked from further changes.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2F03nc0ggoeDFBA8wyEVaW%2Fimage.png?alt=media&#x26;token=b1c049c9-2cfd-49b3-b4db-25516d484aaf" alt=""><figcaption><p>Locked cell</p></figcaption></figure>

* Similarly, update the budget for laptops and other cells if required, and then lock them. The total budget has been updated to 132.82 million.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FdpgJpv36JXNVJ7YEwRvA%2Fimage.png?alt=media&#x26;token=1f7852fb-db04-4b05-bf82-ac57e2753b50" alt=""><figcaption><p>Cells locked</p></figcaption></figure>

* Let's enter 125 million as the total budget to reallocate. The budget is redistributed, as shown below, without affecting the locked cells.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FH8SgSNZL9GiUa5WcwXqr%2Fimage.png?alt=media&#x26;token=ab2b1988-3f09-4d8a-b892-006e9bffeca9" alt=""><figcaption><p>Changes to the budget doesn't affect locked cells</p></figcaption></figure>

### 3.2. Unlock a cell

To unlock a locked cell, select **Unlock this cell** from the context menu. The selected cell gets unlocked.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FSlMzPAjvdQctxy7g4kdb%2Fimage.png?alt=media&#x26;token=5d1fd16e-5f07-4ce5-aafe-da2e03670a6e" alt=""><figcaption><p>Unlock cell</p></figcaption></figure>

## 4. Copy values to rows

On clicking any row, you can see that there is a different context menu.

There are primarily two preset options for updating cell values through copy. You can either **copy the same value across rows** or **use a trend.**

**Note:** If these options do not satisfy your requirements, you can customize each of your cells manually.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FTy46XSV3YfWedd6nKttW%2Fimage.png?alt=media&#x26;token=d7621017-f4b8-40ff-8668-5ac785958020" alt=""><figcaption><p>Copy options</p></figcaption></figure>

### 4.1. Copy

Using the options below, you can copy the current cell value and apply it to other cells.

* Copy until the last row
* Copy to all rows

1. The **Copy until last row** option copies the cell value to the rows following the copied cell but does not affect the values before it.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FXTvwFRXtFzavAHvFw7Bh%2Fimage.png?alt=media&#x26;token=4f805c08-4275-4018-a76d-a1567cd09438" alt=""><figcaption><p>Copy until last row</p></figcaption></figure>

2. The **Copy to all rows** option applies the cell value to all rows in the selected column.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FsAMtjSqpcVtTS7qAvsIS%2Fimage.png?alt=media&#x26;token=b04785c7-34e1-442e-bc7a-118cce7617e4" alt=""><figcaption><p>Copy to all rows</p></figcaption></figure>

{% hint style="info" %}
The locked cell is not affected by the copy action. This way, you can lock the cells before copying a value to ensure that they do not change.
{% endhint %}

### 4.2. Trend

You can apply a trend based on the current cell value and apply it until the last row.&#x20;

1. As you click on the '>', you can see a graphical slider where you can set a trend.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FtO8Kx08VKoln6j98Qmdl%2Fimage.png?alt=media&#x26;token=bd017b4e-f39c-41d3-a1db-15f1facd4f13" alt=""><figcaption><p>Graphical slider</p></figcaption></figure>

2. If you want to enter a percentage precisely, you can click on the 'Input custom value' option.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2F58FJb5yw9gKFZrrO0eZh%2Fimage.png?alt=media&#x26;token=01fa1352-d6e0-4375-b5bd-f868ab1b3f69" alt=""><figcaption><p>Input custom value</p></figcaption></figure>

3. Enter a percentage and click **Apply**.&#x20;

{% hint style="info" %}
You can use a negative value to establish a decreasing trend.
{% endhint %}

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FXRetgQDsZk80aht3uhbR%2Fimage.png?alt=media&#x26;token=a7b2f433-c6b3-4ba1-a2eb-8fbc4a1b9514" alt=""><figcaption><p>Custom trend value</p></figcaption></figure>

4. The row values are updated based on the set trend until the last row.&#x20;

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FND95AkIQfBmqMAgXJEkD%2Fimage.png?alt=media&#x26;token=ff6d566e-6f7b-49e9-a765-1bc9d599b2ab" alt=""><figcaption><p>Copy until last row with trend</p></figcaption></figure>

As shown in the image above, you can achieve various business cases by combining the 'Copy with trend' and 'Lock this cell' options.

In the next section, we'll be covering [set version](https://docs.inforiver.com/premium-table/working-with-premium-table/6.-planning-budgeting-and-forecasting/set-version).
