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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Database query with values from a table

Hi, 

newbie question - I'm trying to fetch a set of ID's from a table and use it when loading data from our SQL database - no luck so far. The where clause should include a set of ID's selected from a table (where "Include" = true). Help would be greatly appreciated.

2021-11-11_07h11_59.png2021-11-11_07h15_15.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You've got to get the filter values into the same cell, like 123,456,457,897,etc. 

You can first transpose and then merge (combine) the columns and use a comma for the delimiter. Drill down on the one field, and then refer to your variable in the SQL, which you do have written correctly.

 

--Nate

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks!

Anonymous
Not applicable

You've got to get the filter values into the same cell, like 123,456,457,897,etc. 

You can first transpose and then merge (combine) the columns and use a comma for the delimiter. Drill down on the one field, and then refer to your variable in the SQL, which you do have written correctly.

 

--Nate

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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