# Compute All

In this document, you’ll learn how to use the *Compute All* function in Astera Dataprep to apply an expression across all fields in your dataset.

1. To begin, click on the *Cleanse* option in the toolbar and select *Compute All* from the drop-down.

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FwarqRFdw5mdSr9MtPrYD%2F0.png?alt=media)

2. This will open the *Recipe Configuration – Compute* panel.

<figure><img src="https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FU6Wqn21wwgvqLiqPYgiO%2Fimage.png?alt=media&#x26;token=62cae30c-3dba-4e15-b8b3-2c489dff2c26" alt=""><figcaption></figcaption></figure>

3. Click on the ![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2Fw7vH2OxSblT5XWTWwnDT%2F2.png?alt=media) button to open the *Expression Builder* window.

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2F6tuUxobA4RwTYHKjTim5%2F3.png?alt=media)

4. In this example, we have mapped a regular expression to the “*$FieldValue*” parameter.

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FVEHeA4NHOVdctgtFhYEX%2F4.png?alt=media)

5. Click *OK* and the expression will appear in the *Recipe Configuration – Compute* panel.

<figure><img src="https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2Fxmihy8O0o1DxofKUrGhy%2Fimage.png?alt=media&#x26;token=cd236c99-2154-4148-ba86-e35772355e8d" alt=""><figcaption></figcaption></figure>

6. Once you’re done, click *Apply.* In the Grid, you’ll see that all white spaces in every field have been replaced with single spaces.&#x20;

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FdTCB3XOIJVdZL8xLBrOI%2F6.png?alt=media)
