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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vikramapandian
Frequent Visitor

How to unfold queries ?

Hi Team,

 

I have to turn on Incremental refresh, but with a folded query it doesn't work. The source for the query is from cosmos DB i.e the data is in the form of a flat structure. By default, the navigate to query option is grayed out in the 1st step itself. Would be of great help, if anyone who knows how to solve this can provide a solution. Thank you!

 

//Vikram

7 REPLIES 7
v-jayw-msft
Community Support
Community Support

Hi @vikramapandian ,

 

Actual Incremental Refresh is designed for data sources that support query folding. If Power BI Desktop is unable to confirm if the datasource supports query folding, the warning will be shown in the Incremental refresh policy configuration dialog. If you see this warning and want to verify the necessary query folding is occurring, use the Power Query Diagnostics feature or trace queries by using a tool supported by the data source, like SQL Profiler. If query folding is not occurring, verify the filter logic is included in the query being passed to the data source. If not, it's likely the query includes a transformation that prevents folding.

Refer:

https://docs.microsoft.com/en-us/power-bi/connect-data/incremental-refresh-overview#supported-data-s... 

 

Best Regards,

Jay

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

It may well be that it was designed that way. But that was a silly design not rooted in the reality of most data load processes.

 

Most of our incremental refresh implementations run without query folding, and they run very well. 

vikramapandian
Frequent Visitor

Here is the IR configuration screenshot,

vikramapandian_1-1646728727939.png

 

Not sure if the warning can be ignored.

Yes, that warning can be ignored.

Next step is to consider the impact of your refresh choice. Even though you say "last7 days" the Power BI service will create up to 61 (!!!) Partitions. I recommend you switch to "last 1 month" to create only 2 partitions.

 

Then start refreshing the dataset and observe partition refresh dates in SSMS or DAX Studio etc.

vikramapandian
Frequent Visitor

Hi,

 

Here is the screenshot of the power query,

vikramapandian_0-1646640848157.png

That looks ok.  Next show the settings in Power BI Desktop for the incremental refresh partitioning.

lbendlin
Super User
Super User

"I have to turn on Incremental refresh, but with a folded query it doesn't work"

 

That is inaccurate. How did you come to this conclusion?

 

Provide more details about your setup. Show the Power Query code that includes the RangeStart/RangeEnd filters.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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