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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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