Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ShivaPrasad1
Helper I
Helper I

Connecting to SAP HANA through direct query with parameters

 Hello Team,

 

Can I use parameters in report where data source is SAP HANA(Direct Query) which need be published to Power BI service as well ?

 

Can I have some reference links for this.

 

Thanks in advance.

 

Regards,

Shiva

 

 

 

 

 

4 REPLIES 4
v-yulgu-msft
Employee
Employee

Hi @ShivaPrasad1,

 

Any variables defined in the underlying SAP HANA view will be displayed at the time of connecting, and the necessary values can be entered. Those values can subsequently be changed by selecting Edit Queries from the ribbon, and then Manage Parameters from the drop down menu displayed.

 

For more details, please refer to DirectQuery and SAP HANA

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yulgu-msft @ShivaPrasad1 Is there any eample of how to do this? 

I would like to pass a parameter(schema1,schema1) so when i change value in parameter the all quries react acordingly.

 

What i have is multiple queries like this:
SELECT * FROM "Schema1"."Function1"();

SELECT * FROM "Schema1"."Function2"();
SELECT * FROM "Schema1"."Function3"();
what I want is all query change my schema name   

SELECT * FROM "Schema2"."Function1"();

SELECT * FROM "Schema2"."Function2"();
SELECT * FROM "Schema2"."Function3"();

 

Since i have lots of queries in singel file i dont want to open each and every query and change schema name in query editor for each one. 

@Thank you @v-yulgu-msft 

 

Your solution will work for developer view. Will it work for Power BI service too? 

Hi @ShivaPrasad1,

 

Please check this article:

Review and edit parameters in Power BI service

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.