Microsoft PowerBI
With the DataCamp Data Connector it's easy to get started analyzing your data in Microsoft Power BI. All you need to do is set up a connection using the PowerBI Athena Connector and configure it using the credentials you can retrieve via the DataCamp Group hub.
This guide assumes you are using Power BI desktop on Windows
Complete these two steps to view your learning data in Power BI.
Set up an ODBC Data Source
Configuring the connection in Power BI
Set up an OCBC Data Source
First, you'll need to install the necessary drivers and configure a Data Source in windows.
Step 1: Download and install the ODBC driver
Go to https://docs.aws.amazon.com/athena/latest/ug/connect-with-odbc.html and download & install the v1 driver for your operating system (Make sure you remember which version (32 or 64 bit) you chose!)
Step 2: Configure your ODBC Data Source
Make sure you have collected your credentials as described on the Your Credentials page.
Open the "ODBC Data Sources" application on your windows machine (chose the version that aligns with the driver you installed! Either 32 or 64 bit)
Select the "Drivers" tab and verify there is a "Simba Athena ODBC Driver" entry in the list, if there isn't you haven't installed the driver properly.
Select the "System DNS" tab
Click the "Add" button
Select "Simba Athena ODBC driver" as Data Source
The "Simba Athena ODBC Driver DNS Setup" dialog will now open. Enter the following data on the "Simba Setup" dialog:
Data Source Name: Free to choose (eg: DataCamp Data Connector) Choose an easy name here, you'll need this to set up your connection in Power BI
Description: optional, you can leave it blank
AWS Region: the Region from your credentials
Catalog: AwsDataCatalog
Schema: default
Workgroup: primary
Metadata Retrieval Method: Auto
S3 Output location:
s3://{bucketname}/tmp-powerbi
→ replace{bucketname}
with the S3 Bucket Name from your credentialsEncryption Options: NOT_SET
Endpoint Override: empty
Streaming Endpoint Override: empty
Click "Authentication Options" (don't close the dialog yet!)
Authentication Type: IAM Credentials
Username: the Access Key from your credentials
Password: the Secret Password from your credentials
Click the "OK" button
Click "Test"
If everything is configured properly, this should result in a "SUCCESS" message.
Click "OK"
The list of items under the "System DSN" tab should now contain your newly created Data Source.
You can close the ODBC application now and start Power BI.
🎉 Your Data Source is successfully set up! On to the next part.
Set up the Power BI Athena Connector
Make sure you restart Power BI if you had it running before you set up your Data Source.
In Power BI Desktop click on the "Get Data" button on the Home ribbon.
The dialog that appears shows you all available Data Sources, use the search field to find the "Amazon Athena" option and click the "connect" button.
In the "Amazon Athena" dialog that appears enter the name of the ODBC connection, you created before. (Our example uses "DataCamp Data Connector")
Choose which Connectivity mode you want to use:
Import loads the data into your local instance of Power BI, meaning you'll have a snapshot of the data locally. This is the most performant option.
DirectQuery will query the live service meaning you'll have the most up-to-date data every day without the need to import it again. This is the slower option.
Click the "OK" button.
Power BI now will ask you how to Authenticate Choose "Use Data Source Configuration" here and click "Connect"
After a few moments, the Navigator panel will appear showing your catalog, databases and tables. Open the "AwsDataCatalog" node, wait for the data to load, and then open the data_connector node. This will show you all the tables available in our Data Connector.
Want to know what data all the tables contain? Learn more by exploring our Data Model in the Data Model article!
Choose the tables you wish to use and click the "Load" button.
This will take some time to complete but after it is finished you now have all the data from the Data Connector, right at your fingertips in Power BI.
Resources
This is a list of official resources related to Power BI and Athena
Last updated