cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gritman
Frequent Visitor

Incremental Refresh with URL

Hello all,

 

I'm trying to use the incrememtal refresh and hope someone can advise me please.

 

I query data using a URL like:  server/path&fromDate=01-01-2020&toDate=-1BD (i.e. return data from Jan 1st to the previous Business Day).

 

Currently when I refresh it data is returned for everyday back to Jan 1st.

 

I would like to use the incremental refresh to return data for -1BD only (i.e. the previous business day) and append to previous 8 months of data.

 

I've setup the incremental refresh as per the instructions Microsoft have provided then changed the query to be server/path&fromDate=-1BD&toDate=-1BD.  However that wiped out the other 8months of data and only 1BD is available.

 

Does anyone have any suggestions on how I can keep the existing 8months of data and then switch over to load incrementally from now on please?

 

Many thanks

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi  @gritman ,

 

First you should set a "RangeStart " and "RangeEnd",and make a setting such as below:

#"Filtered Rows" = Table.SelectRows(dbo_Fact, each [OrderDate] >= RangeStart and [OrderDate] < RangeEnd) 

Then set the refresh as below:

refresh-ranges.png

Pay attention to the marked area.

 


 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @gritman ,

 

First you should set a "RangeStart " and "RangeEnd",and make a setting such as below:

#"Filtered Rows" = Table.SelectRows(dbo_Fact, each [OrderDate] >= RangeStart and [OrderDate] < RangeEnd) 

Then set the refresh as below:

refresh-ranges.png

Pay attention to the marked area.

 


 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors