Forum Discussion
Paginated reporting -dynamic db parameters - deployment pipeline rules
Hi,
I have a paginated report with teradata datasource.
-- do we have any specific syntax to use Power BI Parameters ?
-- how can we switch database between dev/uat/prod using parameters ?
any reference is greatly appreciated.
thanks
- Anonymous2 years ago
Hi, mlm
Based on your description, to use Power BI parameters for a Teradata data source, you can perform the following steps.
1. Create the parameter in Power BI. For example, you can create a parameter for the database name.
2. In the Power Query editor, you can merge these parameters into SQL queries. For example, if the database name has a parameter, you can use this parameter in the clause of the SQL query.Example:
let Source = Sql.Database ("servername", "databasename", [Query="SELECT * FROM tablename WHERE columnname = '" & ParameterName & "'"]) in SourceRelated link: Solved: Include Parameters within Power BI to Query a SQL ... - Microsoft Fabric Community
To switch between databases (dev/uat/prod) using a parameter, you can create a parameter for the database name and then use this parameter in the SQL query. When you want to switch databases, just change the value of the parameter.
let Source = Sql.Database ("servername", ParameterName, [Query="SELECT * FROM tablename"]) in SourceRelated link: Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
3 Replies
- AnonymousNot applicable
Hi, mlm
Based on your description, to use Power BI parameters for a Teradata data source, you can perform the following steps.
1. Create the parameter in Power BI. For example, you can create a parameter for the database name.
2. In the Power Query editor, you can merge these parameters into SQL queries. For example, if the database name has a parameter, you can use this parameter in the clause of the SQL query.Example:
let Source = Sql.Database ("servername", "databasename", [Query="SELECT * FROM tablename WHERE columnname = '" & ParameterName & "'"]) in SourceRelated link: Solved: Include Parameters within Power BI to Query a SQL ... - Microsoft Fabric Community
To switch between databases (dev/uat/prod) using a parameter, you can create a parameter for the database name and then use this parameter in the SQL query. When you want to switch databases, just change the value of the parameter.
let Source = Sql.Database ("servername", ParameterName, [Query="SELECT * FROM tablename"]) in SourceRelated link: Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
- rnola16
Advocate II
Thanks for the detail. Is the syntax same for Teradata as data source.?
- aj1973
Community Champion