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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
madhaviml15
Regular Visitor

Parameter for Database Server and Schema to SQL Statement(Teradata)

Hello,

My dashboard is based on sql statement but I dont want to include Database Server or Schema manually in the query.

 

I have created parameters but i dont get to select both parameters because my backend is teradata.

How can I include Parameters in M query so that I can pass the database server and schema using parameters ?

my M query looks something similar.

let

Source=Teradata.Database(ServerNameparameter,[HierarchicalNavigation=true,

Query="Select column from Schema.table"])

in

Source

I want include my Schemaparameter in the place of Underlined/Boldfont "Schema" above in the code

 

thanks in advance.

3 REPLIES 3
madhaviml15
Regular Visitor

yes it is working when replaced with Parameter in M query. Can we use Date parameters in where clause ?

and refer these parameters in 'Slicer' ? so from dashboard when we are changing the dates in either slicer or filters they have to be applied in the where clause of the query. is it possible?

 

madhaviml15
Regular Visitor

that worked, thank you 😊

amitchandak
Super User
Super User

@madhaviml15 , try if you can replace this with the M query parameter - PSchema

 

Query="Select column from " &  PSchema & ".table"])

 

refer if needed

https://radacad.com/change-the-source-of-power-bi-datasets-dynamically-using-power-query-parameters

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors