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!Get Fabric certified for FREE! Don't miss your chance! Learn more
We are using Power BI Desktop for Report Server (May 2021). Within the query editor we are trying to create a query that retrieves data from an SQL Server database and have it filtered by a parameter. The parameter is "companyIds".
The query we are using is:
select COMPANY_ID as [Company Id], PUBLIC_COMPANY_ID as [Company Number]#(lf)from dbo.COMPANY where COMPANY_ID in(companyIds)
We are unable to get it to work. Please let us know if what we are trying to do is possible and if so what would be the solution.
Hi @Lorenz33 ,
Yes, you can call query parameter when you implement SQL statement in power bi, you can also refer to this:
https://reevessmith.wordpress.com/2014/08/19/power-query-and-stored-procedures-with-parameters/
Pass parameter to SQL Queries statement using Power BI
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 12 | |
| 12 | |
| 10 | |
| 6 | |
| 5 |