Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi there,
I have two tables. They both contain a list of data sources that my code loops through
Currently my setup is like so
let Source = Table_A,
#"Added Custom" = Table.AddColumn(Source, "Custom", each myFunction_f([mySources])),
with me manually changing the value to Table_B when I am ready to push to production. However, I have a dozen or so queries that I am having to manually change. Ideally i would like to do this via a parameter which would allow me to toggle between Table_A and Table_B.
I have the below setup, but it's erroring out. How would I correctly do this?
Desired Code:
let Source = myParam, #"Added Custom" = Table.AddColumn(Source, "Custom", each myFunction_f([mySources])),
Solved! Go to Solution.
You may use Record.Field function.
Source = Record.Field(#shared, myParam),
You may use Record.Field function.
Source = Record.Field(#shared, myParam),
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |