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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
stribor45
Post Prodigy
Post Prodigy

Incremental Refresh

I am trying to test incremental refresh and in my power query i have data from January 1 2024 until today.  I also  have set up  parameters (RangeStart and RangeEnd) to be between April 1 - April 9.  I also have set up custom filter to filter data between these two dates. After this i have done "close and apply" to load this into my model where I also have set up increment policy (see attached) and published it in service. After this I did refresh in my model in desktop but in service I only see data for April and dont see any data from Jan, Feb and March. Any sugestions on what I am doing wrong?

 

stribor45_1-1712677856919.png

 

stribor45_0-1712677743618.png

 

53 REPLIES 53

sorry previousDate is an extra code that I should have commented out. my bad I apologize. This is what I have now

stribor45_0-1712874039751.png

 

Replace line 18 with RangeStart and line 19 with RangeEnd.  Drop the CurrentDate calculation, it is not required.

But assigning previous and current date for those values will call API endpoint and get data from April 1 to

today.  How would I get data from Jan - March?

The Power BI service will do that automatically during the incremental refresh, supplying the appropriate dates for each partition.

stribor45
Post Prodigy
Post Prodigy

I am not disputing that fact. all I am saying that i only have lines between rows 37-50. My first 36 lines of code is juust code related to API call that gets the data. 

That's exactly the point.  If you make the parameters part of your API call filters then you can implement your own query folding.

lbendlin
Super User
Super User

Yes. I am telling you that is way too late.

lbendlin
Super User
Super User

partitions are filled on the second refresh.

@lbendlin do i do that from the desktop in my model? i tried that and it didnt work for me

no, if you do that in the desktop it will reset back.  You have to refresh in the service to distribute the data across the defined partitions.

How do i go back on track now?

Have you done a service refresh after your last publish?  has it completed?  Use SSMS or DAX Studio to confirm that you indeed have more than one partition, and that they are filled with rows and have different timestamps.

This is what i have done again

  1. Refresh in Desktop
  2. Refresh in Service which completed fine
  3. Looked at the report and seeing only April data
  4. Used external tool to conect to Dax Studio and see only one table with April data only

 

Show your Power Query

you mean the code?

Show how you applied the RangeStart and RangeEnd filters.

 

stribor45_1-1712714785841.pngstribor45_2-1712714827476.pngstribor45_3-1712714853161.png

 

 

They can't both be inclusive. One has to be inclusive and the other has to be exclusive.

what do you mean?

Your filter settings will cause data to bleed over across partitions.  Needs to be like this:

 

RangeStart <= DateTime column < RangeEnd

This is what I have which is saying filter where "requesteddate is bigger or equal to April 1 and requesteddate is smaller or equal to April 9. Sorry, can you maybe try to explain it differently because I do not understand. 

 

stribor45_0-1712754800287.png

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors