> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/self-service-visualization/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/self-service-visualization/creating-a-new-story/create-new-story/creating-a-new-story-based-on-a-data-sandbox-data-store-with-data-preparations.md).

# Creating a new Story based on a Data Sandbox Data Store with Data Preparations

{% hint style="info" %}
Check out the given walk-through on a Story creation workflow with Data Preparation steps.
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3U3HdVsN1h9bZt2fgoH%2Fuploads%2FGIBxwdlurLZKQlu8Gnri%2F2023-03-06-12-39-23%20(online-video-cutter.com).mp4?alt=media&token=c0ec948d-cf93-4e8a-b0ee-021441f4d4e5>" %}

**Please follow the below-given steps to create a story with Data Preparation Steps on a Data Sandbox data source.**

* Go to the ***Data Center*** page homepage.
* &#x20;Click on the ***New*** tab.
* Click the ***Data Sandbox*** option to upload a file to Data Sandbox.&#x20;

<figure><img src="https://2340960528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3U3HdVsN1h9bZt2fgoH%2Fuploads%2Fx6X8zDt4yGU3INIIqHSN%2Fimage.png?alt=media&amp;token=70f18420-64de-48ec-89a0-a733e78f4b52" alt=""><figcaption></figcaption></figure>

* The Data Sandbox form opens for the user.
* Provide a name to the ***Data Sandbox.***
* Choose a file from the system.&#x20;
* Click the ***Upload*** option.

<figure><img src="https://2340960528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3U3HdVsN1h9bZt2fgoH%2Fuploads%2FctIrvjS68VPWqhiUExtQ%2Fimage.png?alt=media&amp;token=71806e8a-c516-446e-a63a-d1c691ee081e" alt=""><figcaption></figcaption></figure>

* Now, the uploaded file gets listed on the ***Data Sandbox List*** page.&#x20;
* Click on the ***Data Preparation*** icon to create a Data Preparation and make some transformations on the uploaded file.

<figure><img src="https://2340960528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3U3HdVsN1h9bZt2fgoH%2Fuploads%2FUgH4E13SxphavTBoBHSq%2Fimage.png?alt=media&amp;token=65fb641c-9e3f-4104-acf7-814dab14d3c5" alt=""><figcaption></figcaption></figure>

* The user gets redirected to the ***Data Preparation*** module.
* Provide a name to the ***Data Preparation.***
* Apply various transformations as per the requirements as mentioned in the given image under the ***Steps*** tab.
* Click on the ***Back*** icon suggested as ***arrow icon*** to auto-save the Data Preparation.

<figure><img src="https://2340960528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3U3HdVsN1h9bZt2fgoH%2Fuploads%2F40fJbfuiiQPwpjP4WgGN%2Fimage.png?alt=media&amp;token=30d3525c-5f28-4d9e-bf15-24086f6a7cda" alt=""><figcaption></figcaption></figure>

* Navigate to the ***Data Sandbox List*** page.&#x20;
* Select the Sandbox file that has been saved with the Data Preparation steps.
* Click the ***Create Datastore*** option for the same Sandbox file.

<figure><img src="https://2340960528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3U3HdVsN1h9bZt2fgoH%2Fuploads%2FhO4FV0W1MNZkhFmK4IPl%2Fimage.png?alt=media&amp;token=f7612841-3495-4449-80ab-6d92dd5a3df1" alt=""><figcaption></figcaption></figure>

* The ***Create Datastore*** dialog box opens.
* Provide a name in the ***Datastore name*** field.
* Select the Data Preparation from the drop-down.
* Click the ***Save*** option.&#x20;

&#x20;     ![](https://2340960528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3U3HdVsN1h9bZt2fgoH%2Fuploads%2FbLXXHJXP4XTmNDNsPZrD%2Fimage.png?alt=media\&token=b6f79893-a2a0-451e-a10f-48fec17950d8)

{% hint style="info" %}
*<mark style="color:green;">Please Note</mark>: A notification message appears and the Datastore will be created successfully.*
{% endhint %}

* Navigate to the ***Create New Story*** dialog box.
* Provide a name for the Story.
* Select the ***Existing Datastore*** option to begin with the Story creation.
* &#x20;Select the Datastore from the list that has been recently created from the Sandbox list page.
* Click the ***Create Story*** option to create a new story.&#x20;

<figure><img src="https://2340960528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3U3HdVsN1h9bZt2fgoH%2Fuploads%2FHNUP05UAWkmjCR4JMqUA%2Fimage.png?alt=media&amp;token=069f48f8-bc76-45e2-927f-d754cc586a23" alt=""><figcaption></figcaption></figure>

* The user gets redirected to the ***Design canvas*** of the Story module with the selected Data Store reflecting the Dimension and Measures.
* Drag and drop the Dimensions and Measures to the ***Dimensions/Measures*** tab to create a View.&#x20;
* Click on the ***Save*** icon to save the View to the Storyboard.

<figure><img src="https://2340960528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3U3HdVsN1h9bZt2fgoH%2Fuploads%2FAS9N8sBb6cHDz8wEADsw%2Fimage.png?alt=media&amp;token=c6baba60-4beb-4e1b-af51-7de61ff8c538" alt=""><figcaption></figcaption></figure>
