I'm having multiple PowerQuery queries that I would like to feed the value of a cell in my Excel file. In this particular case, the full path to the sourcefile name.
Is there any way I can get this into PowerQuery?
.mexcelparameter passingpowerquery
I'm having multiple PowerQuery queries that I would like to feed the value of a cell in my Excel file. In this particular case, the full path to the sourcefile name.
Is there any way I can get this into PowerQuery?
Best Answer
This can be achieved using a named range and a custom function in PowerQuery:
SourceFile
GetValue
(Name property in the Query settings pane on the right)Now you can access the named cell in your queries, using
GetValue(cellName)
- e.g.