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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Frequent Visitor

Parameterd On NativeQuery with bigquery

Dear community,


I do have difficulties to use a parameter to feed a where clause in powersuety using the native query with BiqQuery.

I am used to do it with Oracle, but it looks like it does not work with biquery.

Any tils? 

Solution Sage
Solution Sage

You should be able to concatenate your parameter into the text string with your native query in the Advanced Editor. Have you tried that?



Microsoft Employee

I do not get your answer. 

Let s say my parameter is name : country

My native query is 

Source = Value.NativeQuery(GoogleBigQuery.Database()
"select * from
where location = - >here i want my country<-)",

In Source


How do you pass you parameter as string in the clause where

Assuming country is a text parameter (not a list or any), this should work.

Source = Value.NativeQuery(GoogleBigQuery.Database()
"select * from
where location = " & company,

In Source



Microsoft Employee




I have made my test, unfortunately it doesn't get the content of the parameter. very strange


DataSource.Error: ODBC: ERROR [42000] [Microsoft][BigQuery] (70) Invalid query: Unrecognized name: LOE at [53:23]

Not sure if this will work but when trying to pass parameters back to SQL DB I have to use the following format:

where location = '"&country&"'


be careful whe typing it as PQ does weird things like '"&country""' automatically so double check in the formula bar rather than the advanced editor

So great ! working well with double '&'

where location = '"&country&"'

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors