Forum Discussion
Anonymous
7 years agoNot applicable
Help regarding Parameters for changing Data Sources
Hello, I have created report which is connected to dev environment but now I want to point the report to test environment. Both dev and test are present on same server but in different schemas. How ...
LivioLanzo
Solution Sage
7 years agoHi Anonymous - did you update the M code and link it to the parameter ?
LivioLanzo
Solution Sage
7 years agoInstead of using "emp" you'd use the parameter name
let
Source = Odbc.DataSource("dsn=Dev", [HierarchicalNavigation=true]),
IMPALA_Database = Source{[Name="IMPALA",Kind="Database"]}[Data],
emp_Schema = IMPALA_Database{[Name=parameterName,Kind="Schema"]}[Data],
employee_Table = emp_Schema{[Name="employee",Kind="Table"]}[Data]
in
employee_Table