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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.