Forum Discussion
Help regarding Parameters for changing Data Sources
Hi Anonymous - did you update the M code and link it to the parameter ?
- LivioLanzo7 years ago
Solution Sage
Instead 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 - Anonymous7 years agoNot applicable
Hi LivioLanzo
No I havent. I am bit confused how to edit the M code and to link the parameter. Below is the M code for the table:
let
Source = Odbc.DataSource("dsn=Dev", [HierarchicalNavigation=true]),
IMPALA_Database = Source{[Name="IMPALA",Kind="Database"]}[Data],
emp_Schema = IMPALA_Database{[Name="emp",Kind="Schema"]}[Data],
employee_Table = emp_Schema{[Name="employee",Kind="Table"]}[Data]
in
employee_Table