DataOS Integration with Power BI Using ODBC Driver¶
This article will help you to set up the connection between DataOS and Power BI. It provides specific steps needed to fetch data from DataOS into Power BI using Simba Presto ODBC driver.
Requirements¶
- Power BI Desktop installed on your system - If Power BI is not installed on your system, you can download the latest version from the Power BI website.
- Simba Presto ODBC Driver - In order to connect to DataOS Catalog, you would have to install this Presto driver.
- DataOS API token - To authenticate and access DataOS, you will need API token.
Download and Install Presto Driver¶
- Download it from Presto ODBC & JDBC Drivers download page.
![Presto download](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-presto-download.png)
- To run the installer, double-click on downloaded Simba Presto XX-bit installer file. Select the 32 or 64 bit version according to your system configurations.
![Presto setup](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-presto-setup.png)
Follow the steps for the successful installation.
a. Click Next.
b. Select the check box to accept the terms of the License Agreement if you agree, and then click Next.
c. To change the installation location, click Change, then browse to the desired folder, and then click OK.
To accept the installation location, click Next.
d. Click Install.
e. When the installation completes, click Finish.
![](/interfaces/atlas/bi_tools/powerbi/powerbi_custom_connector/integration-presto-setup-finish.png)
- After successful installation, copy the license file (that you have received in your email) into the \lib subfolder of the Simba installation folder.
![Presto license](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-presto-license-lib.png)
> đź“Ś Note: Contact your network administrator in case you encounter an error due to not having required admin privileges.
>
Generate DataOS API Token¶
- Sign in to your DataOS instance with your username and password. On the DataOS home page, click on Profile.
![DataOS Homepage](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-dataos-homepage.png)
- On the 'Profile' page, click on Tokens.
![Profile](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-dataos-profile.png)
- Click on the Add API Key link on the Tokens tab.
![DataOS Token](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-dataos-token-apikey.png)
- Type in a name for this token and also set the validity period of your token based on the security requirements as per your business needs. Click Save to create one for you.
![Add key](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-add-key.png)
- The API key is listed below. Click on the “eye icon” on the right side to make the full API key visible.
![Key created](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-key-created.png)
- Click on the API key to copy it. You need this API key to configure Simba Presto driver.
Configure Presto ODBC DSN¶
To use the Simba Presto ODBC Driver in Power BI application, you need to configure a Data Source Name (DSN) to connect to your data in DataOS.
-
Open ODBC Data Source Administrator (64-bit or 32-bit).
-
Click  System DSN tab.
-
In the list of DSNs, select Simba Presto ODBC DSN, and then click Configure.
![ODBC system DSN](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-odbc-systemdsn.png)
-
In the DSN Setup dialog box, provide the following inputs:
- Provide 'Description' for the data source name.
- In the 'Authentication' section:
- Select Authentication type as LDAP Authentication.
- Enter username for the User and generated API key as the password.
- Now in the 'Data Source' section, provide the required information.
- Host (e.g. tcp.reasonably-welcome-grub.dataos.io)
- Port (e.g. 7432)
- Catalog (e.g. icebase)
- Schema (optional)
![Inputs for DSN setup](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/new_image.png)
- In the DSN Setup dialog box, click SSL Options and enable SSL.
![Enable SSN](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/enable_ssn.png)
- Click Test. and if successful, press OK to close the Test Results dialog box.
![Test success](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-prestodsn-testsuccess.png)
7.Click OK to save your DSN.
đź“Ś Note: If you encounter any error in setting up the connection, please check DataOS url, validity of API key and try again or contact your administrator.
Access DataOS on Power BI¶
- Launch Power BI. Click on the Get Data option in the top menu bar and click More.
![Get data](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-powerbi-getdata-more.png)
- Search for the ODBC from the data source list, then select ODBC and click on Connect.
![Search ODBC](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-powerbi-search-odbc.png)
- Select the DSN you tested successfully during the DSN setup process, and click OK
![Select DSN name](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-powerbi-dsn-selectname.png)
- Enter API key for username and password both in the dialogue box and click on Connect.
![Credentials to access the data source](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-powerbi-dsn-unpass.png)
- On successful connection, you can see the DataOS catalog in the left panel. Select the schema and table and click Load.
![Data loaded](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-powerbi-data-loaded.png)
- Now you can explore and visualize this data in Power BI.
![PowerBI data chart](/interfaces/atlas/bi_tools/powerbi/using_odbc_driver/integration-powerbi-data-chart.png)