# Import Data

You can import data from existing spreadsheets to databases by following the steps below.

1. Select **Import Data** and click **Continue.**

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FAk1Rk4R9kV8acl2sQVbZ%2Fimage.png?alt=media&#x26;token=c4bc19e5-c6b4-43ad-8cbc-8fe4f10a2160" alt=""><figcaption><p>Import Data</p></figcaption></figure>

2. In the file explorer window, select the Excel or CSV file that contains the data, and choose **Open.**

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Fq2GlNd67OYRCGnExzHVm%2Fimage.png?alt=media&#x26;token=b805b0b9-d29b-43d2-b535-ea9df967ce99" alt=""><figcaption><p>Select the file</p></figcaption></figure>

3. The selected file is uploaded. Choose the required sheet from the Excel file.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2F6sivb4NVNp10Sd6bWks5%2Fimage.png?alt=media&#x26;token=55a7ea81-58ec-4400-ae14-bb25f044c26a" alt=""><figcaption><p>Select the sheet</p></figcaption></figure>

4. You can verify the column headers, total number of rows, data, and other details in the preview.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Fy1Ebc6P1AG7AL5yszg5z%2Fimage.png?alt=media&#x26;token=3581b816-0369-49e6-9fd0-3e6bf6d52a3b" alt=""><figcaption><p>Preview Data</p></figcaption></figure>

{% hint style="info" %}
If you wish to import only the table structure with column headers without any rows, you can enable the option, 'Exclude records and import table structure only'.
{% endhint %}

5. We want to import the entire table, including all records, so we left the check box unchecked. Click on **Proceed.**

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FHS32kDnkpMj9XcNDFbd3%2Fimage.png?alt=media&#x26;token=5118c007-095c-4cc7-abab-98774d92f30d" alt=""><figcaption><p>Click <strong>Proceed</strong></p></figcaption></figure>

6. **Select Connection:** Choose from the list of admin or user connections, or [EDITable managed DB](https://docs.inforiver.com/editable/admin-portal-and-editable-console/admin-portal/settings/writeback-settings/editable-managed-db). The supported database connections are mentioned [here](https://docs.inforiver.com/editable/introduction-to-editable/supported-database-connections).

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FgRujC3lSZ87CIfif62iL%2Fimage.png?alt=media&#x26;token=256bbf10-0f45-48d3-ae92-b4c591dbc7b5" alt=""><figcaption><p>Select connection</p></figcaption></figure>

7. If you do not want to choose any of the existing connections and would like to add a new connection, click on **Add Connection.** You can enter the data source credentials to add the connection. You can also [add new connections from the console page.](https://docs.inforiver.com/editable/admin-portal-and-editable-console/admin-portal/settings/writeback-settings/add-and-manage-connections)&#x20;

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FdPdtliYR2uw523GipbYI%2Fimage.png?alt=media&#x26;token=a32b99a3-c8c2-4eb1-9f88-f2fb69d60b9e" alt=""><figcaption><p>Add Connection</p></figcaption></figure>

8. **Table Name:** Enter a name for your table.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FuLtfpUJVJD7ZHCuGxqxD%2Fimage.png?alt=media&#x26;token=db1b465a-f664-46d7-ad67-38d1f1baa8d6" alt=""><figcaption><p>Table Name</p></figcaption></figure>

9. **Column Details:** Verify the column name, primary key, and other relevant details like length, precision, etc. You can edit the details wherever applicable.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2F1JoTYcZERfOLVUyoa8Ks%2Fimage.png?alt=media&#x26;token=5209daa0-08d6-45e3-a967-165c1a414236" alt=""><figcaption><p>Verify/Edit the table</p></figcaption></figure>

10. **Add Column:** To add new columns, click on **Add Column.** You can then enter the required column details.&#x20;

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Ft67DJRwzTaD4KJ4SwMey%2Fimage.png?alt=media&#x26;token=572814de-5e61-41dc-a7e3-ba4e19e4d89b" alt=""><figcaption><p>Add Column</p></figcaption></figure>

11. Check the **Advanced Properties** option to view the advanced properties such as Display Name, Thousands Separator, Prefix, and Suffix.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FyGg6I9EmtOfJ0BvorMm1%2Fimage.png?alt=media&#x26;token=3e37867c-8301-4c65-a478-020203dd40a0" alt=""><figcaption><p>Advanced Properties</p></figcaption></figure>

12. Click the **bin icon** to delete a column.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FRZ9GNtPJVZw7Zk56MMBx%2Fimage.png?alt=media&#x26;token=af90ca66-b9b6-44ac-adf0-7e0e397eac82" alt=""><figcaption><p>Delete column</p></figcaption></figure>

13. You can click on **Preview Data** to view the SQL query that will create the table in the selected database connection.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FFNdEOcmWkbfhmltcsCiR%2Fimage.png?alt=media&#x26;token=cf1ab6ed-797e-4d08-9c30-c009420c25ef" alt=""><figcaption><p>Preview Query</p></figcaption></figure>

14. Click on **Apply** to create the table in the database.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Fm9VuchVf5WyLOXBCjnYE%2Fimage.png?alt=media&#x26;token=f000a95a-b864-43ae-8536-89e8dd9cfe85" alt=""><figcaption><p>Click 'Apply'</p></figcaption></figure>

15. The table is now created at the chosen destination. Click **Download Report** to download a pre-configured Power BI report (.pbix file) with a live connection to the table.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2F2FBqYCVMuiBa73E1CCpM%2Fimage.png?alt=media&#x26;token=fa321061-16d8-4e43-a3c9-afc5f56f35bb" alt=""><figcaption><p>Download Report</p></figcaption></figure>

16. Click open the downloaded file. You can notice the pre-populated visual along with the assigned fields in the Visualizations pane. The system will prompt you to sign in. Click on **Sign in with Office 365** to sign in to the workspace.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FjY2JJhfz8FQUTQ1PyeJO%2Fimage.png?alt=media&#x26;token=790c50c0-0f4f-455e-a390-649220e60020" alt=""><figcaption><p>Sign in to the workspace</p></figcaption></figure>

You can now start managing your data from Power BI. Any changes made to the table in EDITable, after saving (or after approval, if enabled), get applied to the database it is connected to.

{% hint style="info" %}
After downloading the .pbix file, you might get the pop-up messages as shown in the image below:

1. Click 'Apply changes' to apply any pending changes to the queries.
2. Close the 'Pause visuals' suggestion tip that appears below. **Do not pause the visuals** so the live changes get synced to the database.
3. Save the .pbix report at regular intervals after making any changes to avoid loss of data.
   {% endhint %}

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FCpV20CnxyOvegzFbP3No%2Fimage.png?alt=media&#x26;token=07c05d9e-c049-4d1f-a2c7-c782d9307a61" alt=""><figcaption><p>Downloaded .pbix file with a live connection to the database</p></figcaption></figure>

After creating a table, you can proceed to the next step: [managing columns](https://docs.inforiver.com/editable/working-with-editable/manage-columns) to configure them, and then you can start working on your data.

You can refer to the other sections of this guide for assistance.
