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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

select rows where field from sql table equals field in power bi query

Hi All,

hope I can explain this:

I have an existing query in power BI that lists product id, product description based on a parameter user inputs.

I have a view in sql database that shows all products sold over a timeframe(not relevant)

I would like to get all products sold that match product id from the existing query

I really hope it makes sense, i'll try to visualize it:

existing query has prod ids 'A','B',C'

i want noly the rows from the SQL view that match product ids 'A','B','C'

Any help would be greatly appreciated!

4 REPLIES 4
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution to help others find it.
 
Best Regards
Lucien
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

The following article may be helpful foryou!You can have a look!

How do I pass parameters to my SQL statement?

How do I pass parameters to my SQL statement?

 

Best Regards

Lucien

Anonymous
Not applicable

yes, i'll give it try thanks!

 

amitchandak
Super User
Super User

@Anonymous , You want to pass query parameters? Ask is not very clear.

 

refer if this blog can help https://www.thebiccountant.com/2017/03/22/use-slicers-for-query-parameters-in-powerbi/

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.