---
schema_version: "1"
id: 509f2e2331b33b52536f686d508caa52d0db78f5fd59e2270a2a757443f5be93
title: Materialize Calculations in Your Extracts
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/pro/desktop/extracting_optimize.md
canonical_url: https://help.tableau.com/current/pro/desktop/en-us/extracting_optimize.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 3ee1bf9e674ffb67d69c1314ab10166e0d926823eda94e048bc6be1f791fd727
description: Materialize calculations in an extract to speed up future queries.
---
[Skip to main content](#main-content)

# Materialize Calculations in Your Extracts

You can use the Compute Calculations Now option to materialize calculations in your extract. When calculations are materialized, certain calculations are computed in advance and its values stored in the extract. Depending on the complexity of the calculations used in your extract, this can potentially speed up future queries by allowing Tableau to compute certain calculations in advance. Tableau can then use the precomputed value rather than computing the value each time a query against a calculation is made.

If the formula for a calculation that Tableau has already materialized changes or the calculation is deleted from the data source, the materialized calculation is removed from the extract until you use the Compute Calculations Now option again.

## When to materialize calculations

You should not use the Compute Calculations Now option for all your extracts. Instead, try this option only when the query performance of your extract is slow as a result of complex calculations, such as string manipulations and regular expressions.

## Materialize calculations

To materialize calculations in your extract, do the following:

1. In Tableau Desktop, select the extract data source from the Data menu.
2. Select Extract > Compute Calculations Now.

### Materialize calculations in extracts already published to Tableau Cloud or Tableau Server

If you need to retroactively materialize calculations in extracts that are already published to Tableau Cloud or Tableau Server, you have the following options:

- You can download the extract, open the extract in Tableau Desktop, use the Compute Calculations Now option (as described above), and then republish the extract.
- As a site administrator or data source owner, you can use tabcmd to refresh the published extract with the `--addcalculations` option to materialize the calculations. For more information about the tabcmd command option, see [refreshextracts](https://help.tableau.com/current/online/en-us/tabcmd_cmd.htm#id4cdb3410-1c41-4dad-b1d2-306542ac9b32) in the Tableau Cloud Help or [refreshextracts](https://help.tableau.com/current/server/en-us/tabcmd_cmd.htm#refreshextracts_workbook-name_or_datasource-name) in the Tableau Server Help.
    
    **Note:** Materializing calculations can increase the size of the extract.

## Calculations that cannot be materialized

The following calculations cannot be materialized:

- Calculations that use unstable functions such as NOW() and TODAY()
- Calculations that use external functions such as RAWSQL and R
- Table calculations
- Level of detail (LOD) calculations
- Calculations that use column groups, until the dependent column group is materialized with an extract refresh