Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
epayen
Regular Visitor

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:
Captura.JPG

 

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:
 
Captura2.JPG

 

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.
 

 

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @epayen , 

Did you mean that you want to use another sheet as parameter values, right? If so, you could refer to Pass-ParametertoPowerbI  for details. Or you also could refer to below How to handle SSRS multi-value parameter filtering in SQL Server Parallel Data Warehouse , then combine sheet's values into a string, and filter with this string.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
dax
Community Support
Community Support

Hi @epayen , 

Did you mean that you want to use another sheet as parameter values, right? If so, you could refer to Pass-ParametertoPowerbI  for details. Or you also could refer to below How to handle SSRS multi-value parameter filtering in SQL Server Parallel Data Warehouse , then combine sheet's values into a string, and filter with this string.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors