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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Schema change to multiple queries(SAP hana and Direct query)

Hi Community, 
I am tryting to change Schema name and server name dynamically for my direct query statements(using SAP HANA)

using parameter i am able to get dynamic servername but still struggling to change Schema name in all queries at once. Please see screenshot here:

Dynamic CnameParameter.jpg

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. 

 

My real problem is moving a powerbi report from UAT to Production back and forth.

Thanks, in advance

1 REPLY 1
ImkeF
Community Champion
Community Champion

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors