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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
tobny76
Helper III
Helper III

Check queryfolding Snowflake

Hi!
I'm trying to see if my query is folding but, I don't get this to work.
https://www.brunner.bi/post/new-ways-to-check-if-queries-fold-in-power-query-1

What am I doing wrong?

let
     Source = Snowflake.Databases(SF_URL,SF_Warehouse,[Role=SF_Role]),
    EDW_Database = Source{[Name=SF_Database,Kind="Database"]}[Data],
    Schema = EDW_Database{[Name="PROCUREMENT",Kind="Schema"]}[Data],    
    View = Schema{[Name="SUPPLIER_INVOICE_DETAILED",Kind="Table"]}[Data],
    Date_From_Filter = Table.SelectRows(View, each [Accounting Date] >= #date(Date.Year( DateTime.FixedLocalNow())-P_Years_Back_Calendar, 1, 1)),
    GetMetadata = Value.Metadata(Date_From_Filter),
    QueryFolding = GetMetadata[QueryFolding]
in
    QueryFolding

 

tobny76_0-1743507644086.png

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

There are simpler and more efficient ways.  Use the Query Diagnostics to see what is actually going down the wire (ie if your Power Query filters are handed over to Snowflake or not)

View solution in original post

3 REPLIES 3
v-achippa
Community Support
Community Support

Hi @tobny76,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @lbendlin for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user's resolved your issue? or let us know if you need any further assistance.
If our super user's response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @tobny76,

 

We wanted to kindly follow up to check if the solution provided by the super user's resolved your issue.
If our super user's response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

lbendlin
Super User
Super User

There are simpler and more efficient ways.  Use the Query Diagnostics to see what is actually going down the wire (ie if your Power Query filters are handed over to Snowflake or not)

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.