Forum Discussion

epayen's avatar
epayen
Regular Visitor
6 years ago
Solved

Read data from column in Sheet

Dear friends, I have  a question about pass a column in a sheet as parameter (that may change in the number of elements on the same column from one time to other) 
 
I have this power query in Excel: 
 
= Odbc.Query("dsn=MIDB", "SELECT        I3_NUMED AS MEDIDOR, I3_STATUS AS STATUS_MED#(lf)FROM            CATAL3#(lf)WHERE        (I3_NUMED IN ( 'P521Y8 ', '523DNE ', '4V97T5 '))")
 
And it returns all data without problem to an excel Sheet1 all the info requested. I can change manually the parameters and again I got the result in the sheet without any problem:

 

Now, in the same book in Sheet2, I wrote in the column A,  a new set of parameters that I wish to use as new parameters, but, I dont know how to "link" to the power query to let know that those elements are the new parameters for my query:
 

 

I wish to understand how to do this the mos elementary form. And then I will continue improving the query from myself.
Any help would be appreciated.
Thank very much.
 

 

2 Replies