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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

getting error while passing the date parameter in the advance editor

Hello,

 

I am passing the date parameter in the query however it is giving me an error "Native queries aren't supported by this value"

 

below is the query.

 

arif0783_0-1645872271132.png

 

2 ACCEPTED SOLUTIONS
NimaiAhluwalia
Responsive Resident
Responsive Resident

Hello @Anonymous 

 

We need to install Snowflakes ODBC driver in advance to connect SnowFlakes server.

 

Try viewing these posts as it might help

 

https://community.powerbi.com/t5/Service/quot-Native-queries-aren-t-supported-by-this-value-quot-When/m-p/2227945/highlight/true

 

IF MY SOLUTION HELPED YOU PLEASE DO HIT A LIKE AND ACCEPT IT AS A SOLUTION IF IT SOLVES YOUR ERROR!

 

Regards,

Nimai Ahluwalia

View solution in original post

Anonymous
Not applicable

Hi  @Anonymous ,

There may be a query folding problem.

Are you using a native database query when connecting to Snowflake, and if so, there are some limitation on query folding:

Query folding while using a native database query is limited to the PostgreSQL connector only. No other connectors support query folding if you use a native database query. Also, for folding to work in the PostgreSQL connector, the native database query you enter has to work as a subquery.

Please note the "Query Folding" relates to whether the Client or the Server is using the CPU to process the query. If the data source supports Query folding, the database CPU can be used to process the query then return the results. If Query folding is not supported, not hosted on the database, there means that you need to return all the data from the Datasource to your Local Client to process the query. 

 

You can check if Query folding is supported here:

https://docs.microsoft.com/en-us/power-query/power-query-folding#determine-when-a-query-can-be-folded

 

Best Regards,

Liu Yang

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi  @Anonymous ,

There may be a query folding problem.

Are you using a native database query when connecting to Snowflake, and if so, there are some limitation on query folding:

Query folding while using a native database query is limited to the PostgreSQL connector only. No other connectors support query folding if you use a native database query. Also, for folding to work in the PostgreSQL connector, the native database query you enter has to work as a subquery.

Please note the "Query Folding" relates to whether the Client or the Server is using the CPU to process the query. If the data source supports Query folding, the database CPU can be used to process the query then return the results. If Query folding is not supported, not hosted on the database, there means that you need to return all the data from the Datasource to your Local Client to process the query. 

 

You can check if Query folding is supported here:

https://docs.microsoft.com/en-us/power-query/power-query-folding#determine-when-a-query-can-be-folded

 

Best Regards,

Liu Yang

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

Anonymous
Not applicable

I think the problem is not with the ODBC connector.

 

If i dont pass the parameter in the sql statement it is runnning fine as soon as i include the parameter it is giving me an error.

 

arif0783_0-1645899359293.png

 

 

Follow this below document if you want to pass the parameter in the Advance Editor using the M query

 

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters#:~:text=In....

 

IF MY SOLUTION HELPED YOU PLEASE DO HIT A LIKE AND ACCEPT IT AS A SOLUTION IF IT SOLVES YOUR ERROR!

 

Regards,

Nimai Ahluwalia

NimaiAhluwalia
Responsive Resident
Responsive Resident

Hello @Anonymous 

 

We need to install Snowflakes ODBC driver in advance to connect SnowFlakes server.

 

Try viewing these posts as it might help

 

https://community.powerbi.com/t5/Service/quot-Native-queries-aren-t-supported-by-this-value-quot-When/m-p/2227945/highlight/true

 

IF MY SOLUTION HELPED YOU PLEASE DO HIT A LIKE AND ACCEPT IT AS A SOLUTION IF IT SOLVES YOUR ERROR!

 

Regards,

Nimai Ahluwalia

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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