Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Jinal_Patel
Explorer
1,911

Introduction

Currently there are no out of box connectors for Datasphere in Power BI. There is Beta version of SAP Datasphere OData connector available, but it is a custom connector and has Odata feeding. Hence for stability and performance perspective I chose ODBC Connector for my use case.

But Leveraging Standard ODBC connector also has some known challenges when it comes to reporting in Power BI using data source as SAP Datasphere. One of Major limitation identified is that Input parameter/Variables created at Datasphere level are not getting exposed in Power BI. Hence Push down of user inputs wont be possible and filtering will be applied at Power BI level which is not efficient in terms of dynamic calculation, resource utilization and performance.

This Document will explain workaround to mitigate this and step by step process in order to push down front end passed filters to Datasphere layer. Please note this workaround is suitable only for static reporting requirement in terms of fields and list of user inputs.

 

Steps

2.1 Create Datasphere Analytic model with input parameters enabled

Jinal_Patel_0-1737360026467.png

 

2.2 Use ODBC connector with SQL string for initial SQL connection with input enabled Analytic Model

Jinal_Patel_1-1737360053906.png

 

2.3 Edit Query, create new Parameter and map new parameter into SQL String. That’s It!!

Jinal_Patel_2-1737360081665.pngJinal_Patel_3-1737360092701.png

 

2.4 Try Out Dynamic Filtering in Analytic Model by passing different values in Power BI Parameter

Jinal_Patel_4-1737360117356.pngJinal_Patel_5-1737360151102.png

 

8 Comments
AnkurGoyal03
Explorer

Hello Jinal,

This is great workaround, but could you please suggest if we can do something for Import data connection option?

Thanks,

Ankur

maxpinato_horsa
Explorer
0 Kudos

Hello Jinal, great post. I've a question similar to AnkurGoyal ... are you using live query ? 

Jinal_Patel
Explorer
0 Kudos

This is Import Connection @maxpinato_horsa @AnkurGoyal03 

albertosimeoni
Participant
0 Kudos

Hello @Jinal_Patel ,

are you using the so called "database analysis user" to read from an analytic model? because as far as I know the "normal" database user defined inside spaces can not read analytic models:

The column view generated by the analytic model can not be read with database user defined inside a space.

Jinal_Patel
Explorer
0 Kudos

Now, Analytic model can be read as well with open sql user created in space. @albertosimeoni 

albertosimeoni
Participant
0 Kudos

@Jinal_Patel 

I found a problem...

A Single Analytic model is deployed as multiple column view in the database:

1) A column View with base fact fields -> that can be read from DB users.

2) A column view for every associated dimension. -> that can not be read from DB users.

3) A final column view (Fact join Dimensions). -> that can not be read from DB users.

example with a database analysis user (read all permission).

albertosimeoni_0-1738073142742.png

Example with a DB User created inside a space (2 and 3 are missing!!):

albertosimeoni_1-1738073182118.png

 

albertosimeoni
Participant
0 Kudos

Hello @Jinal_Patel ,

I confirm that now I can read Analytic Model through DB users but with limitations.

I ask to SAP to update the official Datasphere documentation here https://help.sap.com/docs/SAP_DATASPHERE/43509d67b8b84e66a30851e832f66911/4db6f5a329af44509ae422ad70...

As is not mentioned anywhere unless this note https://me.sap.com/notes/3416339/E

AnkurGoyal03
Explorer
0 Kudos

Hi @albertosimeoni ,

I faced the same situation when connecting using ODBC connection, the Association won't work. so unfortunately, we have to flatten the structure in Analytical Model and we did the text join underlying view and consumed in AM.

Thanks,

Ankur

Labels in this area