# CUBEVALUE Function

> Return an aggregated value from an OLAP cube, narrowed down by member expressions, with CUBEVALUE in TX Sheet Control and the formula provider it requires.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > CUBEVALUE Function
- **284 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubevalue/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubevalue/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubevalue/llms-full.txt

---

Return an aggregated value from an OLAP cube. Use it to show, for example, the sales of one product in one year. `connection` is the name of the connection to the cube, and each `member_expression` is a member or set that narrows the value down. The function requires host-provided data or an Excel-specific object: TX Sheet Control has no built-in cube connection, so the application supplies the data through a formula provider. Without a provider, the function returns `#N/A`.

### Syntax

```text
CUBEVALUE(connection, member_expression1)
```

Category: Cube. Minimum arguments: 1. Maximum arguments: 255.

> Important
>
> **Application Data or Provider Required.** Configure the documented provider rather than expecting automatic network or Excel-service access.

### Examples

```text
=CUBEVALUE("connection","[Member]")
```

Without a formula provider, the formula returns `#N/A`.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [CUBESETCOUNT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubesetcount/llms-full.txt)
- **Next:** [CUMIPMT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cumipmt/llms-full.txt)
