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

DirectQuery from Azure server with parameter?

I'm querying from a source that houses information linked to many different companies (CompanyIds) but I wanted to only query data related to one company by passing CompanyId as a parameter. 

 

Looking at Advanced Editor:

I was successful previously when I was sourcing from a normal server by creating a value parameter in BI and this query (first image): 

Capture1.PNGCapture.PNG

where the parameter name is CompanyId

However, I am not sure how to translate that with this new azure source (second image).

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi @Anonymous 

You could refer to this blog, and please note that

Query parameter doesn't work in Power BI Service for the report which is Direct Query for now.

See this blog:

https://blog.gbrueckl.at/2019/03/using-power-bi-desktop-direct-query-with-parameters/

In direct query mode, It is only supported in power bi desktop.

Also, you need to make sure that you have entered the credentials for the different source databases at least once – otherwise Power BI will ask you when you query the database the first time. This is also the reason why this does not work so well in the Power BI service as changing the parameters there is not as simple as it is in Power BI desktop.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.