> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ActivePivot Excel Add-in: enhance your experience of Atoti in Excel

## Introduction

The ActivePivot Excel Add-in is used to bring some extra functionalities to the Excel experience. These functionalities are readily
available in Atoti UI:

* Allow the users to drillthrough into special datagrids and widgets in Excel and bypass the Excel row limit;
* Refresh the pivot table when real-time updates occur
* Move through sliced filters more easily using next and previous buttons
* View and configure context values
* View MDX queries executed by the pivot table

## Installation

The Excel Add-in is released and installed thanks to a setup.exe file and an accompanying MSI file.

Dependency Information (Shipped as DLLs with the installer):

* Antlr3
* VSTO 4.0
* .NET Framework 4

**After logging in JFrog Platform**, the setup files can be downloaded
from [Artifactory](https://activeviam.jfrog.io/ui/repos/tree/General/activepivot-generic-release/excel-addin).
The version 6.0 is compatible with Atoti Server 6.0, while the version 5.11 is compatible with
Atoti Server 5.11 and ulterior versions.

Run the setup.exe file with Excel closed. It will prompt the set-up wizard that will guide you through the installation.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_setup_wizard.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=b19a328851532a4df58651e58680854b" alt="Set up wizard" width="620" height="508" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_setup_wizard.png" />
</Frame>

Once the add-in has been installed, it is ready to use. You can check that the add-in has been successfully
installed by starting Excel and checking that the Ribbon has a new section called ActivePivot.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_ribbon.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=724c1b303ad399034c31beeb5881ef8c" alt="Excel Ribbon ActivePivot section" width="770" height="138" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_ribbon.png" />
</Frame>

## ActivePivot Configuration

To use the add-in, your Atoti Server needs to expose the spreadsheet service as a rest service: to do that
add the `SpreadsheetRestServiceController.class` to the import list of `ActivePivotRestServicesConfig` if
it is not present.

The `SpreadsheetRestServiceController` is an internal REST service and should not be used directly by
client applications. We intentionally avoid any mention of this service in the REST API documentation.

## How to use the add-in

### Introduction

First, you need to connect Excel with ActivePivot as explained in the section [Front ends](./front_ends/user_guide_querying_front_ends_overview). Then, each
additional functionality of the ActivePivot add-in will be available from both the Ribbon section "ActivePivot" and the
context menu of a valid pivot table.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_context_menu.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=a461114cc70228e5f65c35ff5280e69d" alt="Excel ActivePivot context menu" width="398" height="289" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_context_menu.png" />
</Frame>

At the first use, the add-in will prompt you for authentication to
ActivePivot. For security reasons, the add-in cannot use the connection established by Excel and will need its own
authentication.

Let's see what you can do with the ActivePivot Excel Add-in from left to right in the ribbon.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_ribbon.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=724c1b303ad399034c31beeb5881ef8c" alt="Excel Ribbon ActivePivot section" width="770" height="138" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_ribbon.png" />
</Frame>

### Enable

The Enable button allows to enable or disable the add-in.

### About

The About button opens a pop-up showing the add-in version and the versions of Atoti it is compatible with.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_about.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=d52e299418cec58bb567e142d7507229" alt="About popup" width="466" height="315" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_about.png" />
</Frame>

### Configuration

The configuration button opens a pop-up that allows you to choose different settings:

* the authentication method
* the drillthrough output type
* the refresh rate of the real time

Afterwards, close the pop-up.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_config.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=93daea25f11f96958ae3a55d6475af32" alt="Configuration settings pop up" width="388" height="267" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_config.png" />
</Frame>

### Drillthrough

There is a native function for drillthrough in Excel. The add-in proposes an alternative drillthrough
function that:

* can use a context value `drillthrough.maxrows` to configure maximal number of rows in the output;
* can display the drillthrough result as a datagrid or a spreadsheet.

The `drillthrough.maxrows` limit can be configured from Excel with the [context values action](#context-values) of the add-in. The output
format of the drillthrough (datagrid or spreadsheet) can be chosen from the [configuration settings](#configuration). To enable the
real-time, click on the corresponding [action](#realtime).

#### How to create a new drillthrough

A drillthrough can be performed on a cell of a pivot table by either double-clicking on the cell or selecting the
cell and selecting the 'Drillthrough' option from the ribbon or the context menu. There are several kinds
drillthrough that can be performed, you can select the type by changing the 'Drillthrough Output Type' in the
[configuration settings](#configuration).

##### Spreadsheet Drillthrough

The spreadsheet drillthrough option is similar to the native drillthrough, but is not limited by the native Excel
drillthrough row limit. The drillthrough displays the number of rows based determined by the 'Max Drillthrough
Rows' context value, and opens the result in a new sheet:

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_spreadsheet_drillthrough.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=9196224fea5328006cad3b666647da28" alt="Spreadsheet drillthrough" width="3193" height="1257" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_spreadsheet_drillthrough.png" />
</Frame>

We do not recommend to switch between the spreadsheets while executing this command due to internal Excel
limitations. Some data may be lost or corrupted.

##### Datagrid Drillthrough

The datagrid drillthrough performs a drillthrough up to the first 100 rows of a selection and displayed it a popup
that can be docked within the Excel window:

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_datagrid_drillthrough.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=829952d2f098b6d096d2d9d9002adfc7" alt="Datagrid drillthrough" width="1720" height="1052" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_datagrid_drillthrough.png" />
</Frame>

### RealTime

The realtime button enables the update of the data in real-time. The refresh interval can be modified in
the [configuration settings](#configuration). The minimum and default value is 500ms.

### Context Values

When a pivot table cell is selected, the context values for that specific pivot can be viewed and manipulated in a
popup by selecting the 'Context Values' button in the ribbon.

Uninitialized context values can be set by selecting them from the drop-down menu and pressing the 'Initialize'
button. Context values can be unset by selecting the 'Remove' button. Some context values (e.g. reference currency)
will always have a value set for them, so will reappear in the list with a default value if removed.

To confirm any changes you want to be submitted to the cube select the 'Apply Context' button. The 'Clear Cache'
button clears the internal context values cache held by the add-in and re-requests the values from the cube,so this
will cancel any changes you have made but not applied. Close the window when you are done.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_context_values.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=0e731a39ec2afbd5db90be0bc44103c8" alt="Context values configuration" width="522" height="501" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_context_values.png" />
</Frame>

### MDX Viewer

The Mdx viewer button displays the current MDX query made by the pivot table in a drawer at the bottom of the Excel
window.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_mdx_viewer.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=cbaf088c86371622872c5a6a8b1eeb2d" alt="Mdx Viewer" width="635" height="523" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_mdx_viewer.png" />
</Frame>

### Slicer Navigation

The slicer is the filter applied to the pivot table and displayed just above.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_slicer_example.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=a361c8d122523649c052573bbbdab151" alt="Slicer example" width="400" height="235" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_slicer_example.png" />
</Frame>

The Next and Previous button in the Slicers section allows you to cycle through the slices for each member on that
level.

<Frame>
  <img src="https://mintcdn.com/activeviam/C3uszhevq0AWZMaf/engine/java-sdk/6.0/assets/user_guide/excel_addin_slicer_navigation.png?fit=max&auto=format&n=C3uszhevq0AWZMaf&q=85&s=27c202e9116c7180f4d7a9907e0b551d" alt="Slicer navigation" width="75" height="77" data-path="engine/java-sdk/6.0/assets/user_guide/excel_addin_slicer_navigation.png" />
</Frame>
