Technical Articles
Consuming data from SAP Datasphere into Power BI via ODBC connector
I wanted to share my proof of concept about consuming data from SAP Datasphere into Power BI via ODBC connection (Open database connection)
Required:
- Datasphere tenant.
- Power BI.
- Need to create a database user for the particular space in the space management.
- Host name, Port number, Password, Database username.
- Need to add External IPV4 Address in the IP Allowlist.
- Hana ODBC client.
- Need to add credentials in Power BI.
Datasphere part:
Login into Datasphere -> Space Management -> Choose the space and select Edit.
Click Create and Make sure that you have enabled Expose for consumption by default
EXTERNAL IPV4 ADDRESS should be added here, not Internal IPV4
To get External IPV4 Address
- Open Command prompt and enter curl ifcfg.me
- Then run curl ifcfg.me in command prompt and add that IPV4 Address in the IP Allowlist.
Need to install SAP HDODBC driver SAP Development Tools (ondemand.com) in the system.
Open ODBC in the system
Click Add
Select HDODBC
- Give any meaningful name to Data source name, description.
- Database type: SAP HANA Cloud or SAP HANA Single tenant (both will work fine).
- Already copied Host URL in datasphere space, Paste the copied Host URL.
- Click Test connection
- Paste the Database username in Username and Password.
POWER BI PART:
Power BI-> Get data-> ODBC.
Select the created ODBC Connection
Paste the same Username and Password which copied in datasphere part, click “Connect”.
Successfully Power BI consuming data from SAP Datasphere
From this POC:
- Data from Datasphere can be consume via OBDC connection 100/100.
- Since ODBC connection is possible, we can consume data into any third-party reporting tools that we want.
THANK YOU !
Hi Vignesh, great blog,
Can you consume Datasphere native semantics (Labels) using this method or is it just the technical names that show up?
Thanks
Jon
Hi Jon,
Thank you.
Hi Vignesh,
Thanks for the reply but with HANA this was all seamless. The business facing names were maintained in calculation views and were all available for a BI. The above methodology required the business facing names to be maintained independently in Power BI and Datasphere and this is not very efficient and also likely to become unsynchronised.
Hi Jon,
Integrating two different platforms has never been easy and seamless. In our case, using SAP Datasphere and Power BI is a game-changer. SAP Datasphere enables data transfer from one source to multiple BI solutions via an ODBC connection.
As you said The business facing names were maintained in calculation views and were all available for a BI right? Yeah it is correct,
Thanks.
Hi Vignesh,
But the whole point of datasphere is centralised metadata management. Why would I want to create a power query for something that should just be available to any consumer?
Thanks,
Hi Vignesh,
Thanks for your blog.
We're currently trying to do the same thing at a customer, but we are having trouble importing measures that we have created in the Analytical Model.
Do you have any experience with this? We want to manage all data (definitions) in one place (Datasphere).
Thanks,
Max
Hi Max,
What are the source connections for datasphere? From where you are trying to import measures?
Yeah it is possible to manage all data (definitions) in one place (Datasphere).
Thanks.