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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
MNMKJ
Frequent Visitor

Filter of data while importing from sql

Hey Guys, 

Need help with below:

 

I have a huge data set in hadoop which i have connected with power bi.

I also have another table in excel which contains list of customers i need to filter and take out details from the main table in sql.

i converted the table in list and made a parameter named "kadam"

 

and used below query :

 

let
Source = #!"Odbc.Query(""dsn=impala"", ""SELECT * FROM analytics_n_reporting.v_lpm_smth_liab_consld_acct_details WHERE cod_cust_id IN (""kadam""))"
in
Source

 

 

it is giving error " Expression.SyntaxError: Token ',' expected."

 

Please help here, ultimately i need to use the table from excel to filter data while importing from hadoop, i dont want to use merge as it will take a lot of time and not using relationship either as i need to do further conditional analysis in power query.

2 REPLIES 2
amitchandak
Super User
Super User

@MNMKJ , I think it should be like

 

let
Source = Odbc.Query("dsn=impala", "SELECT * FROM analytics_n_reporting.v_lpm_smth_liab_consld_acct_details WHERE cod_cust_id IN ('kadam')" )
in
Source

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey, it is not working as single quotes does not takes parameters. please help here

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.