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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.