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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
mshoai
Regular Visitor

ODBC dynamic parameterization

Hello,

 

My source data comes from ODBC query. I would like to add dynamic parameters from an excel file to the query.

 

Eg., 

Query:

Odbc.Query("dsn=SB", "SELECT ALL A.CONO15, B.CONO05 FROM GT.PLOPITMS A LEFT OUTER JOIN GT.PLP05 B ON A.CONO15 = B.CONO05 AND A.SUPN15 = B.SUPN05 WHERE A.CONO15 IN ('G7','G8') AND B.GCTL05 IN ('242221000000', '24224001XDXB') AND A.BBAL15 <> 0 AND A.ETYP15 IN ('CA', 'JL') ORDER BY A.SUPN15 ASC")

 

Excel Data:

LibCodeCode
GTG7G8
GSF16S

 

In Place of GT.PLOPITMS i want to pass values from Excel column(Lib).

and in place of A.CONO15 IN ('G7','G8') i want to pass values from Code columns.

 

1 REPLY 1
ND_Pard
Helper II
Helper II

Refer to: How To Parameterize Your Power Query | How To Excel

It may provide you with what you're looking for ...

Good Luck.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.