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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
LiranRom
Helper I
Helper I

incremental Refresh sends weirds range calls

I have a connector that first calls the Navigation part and form there it calls the methods fetch data ( I've added 2 parameters RangeStart and RangeEnd ) - to get my data from the service, in this range

Screenshot 2023-08-06 at 16.06.57.png

this lead to successfull E2E working code.
meaning: I have connector and I set in power BI desktop 2 Parameters RangeStart and RangeEnd and when I call my connecot with those parameters - its put the parameters as GTE and LTE and fetch data accordigly  - works great.
Here are my parameters, and calling the connector

Screenshot 2023-08-06 at 15.40.28.png

Screenshot 2023-08-06 at 15.40.35.png

 

when I refresh on desktop I got those parameters on my server: same as the initial values of RangeStart and RangeEnd I set. which is as expected: "gte"=>"2023-01-01", "lte"=>"2024-01-01"


Then I set refresh incremental setting on the model - I wish to archive 2 years and refresh only last day.

Screenshot 2023-08-06 at 15.47.48.png


then, I've created a report and publish it to Power BI service.

and refresh manually (on demand) the dateset

Screenshot 2023-08-06 at 15.51.03.png

The weirds was the GTE and LTE values, when I monitor on our server, it makes no scence:
1. "gte"=>"2021-01-01", "lte"=>"2022-01-01"

2. "gte"=>"2023-08-02", "lte"=>"2023-08-03" 

but today is August  6 2023 (so why it fetch year 2021? and why 3 days ago?)

 

can you please try to explain?

Thanks

1 ACCEPTED SOLUTION

I don't think that works for "My Workspace".  Try with a proper shared workspace.

View solution in original post

9 REPLIES 9
LiranRom
Helper I
Helper I

@lbendlin Thanks for your feedbacks, but I don't understand how the mechanism works.

 

let me clarify something:
I have Power BI Pro plan

 

in the connector code - we fetch data from server by Web.Contents using RelativePath and Query. 

we're using the RangeStart and RangeEnd (from PowerBI) in the Query.

RangeStart -> used as GTE param sent to server

RangeEnd -> used as TLE param sent to server

On the server its allow only GTE and TLE, not GT and TL. Why is it important?

 

I still not understand how the incremental refresh mechanism work, how its takes the setting I've enter in Power BI Desktop (2 years archive, 1 day before refresh) and using it when I perform refersh on Power BI Service

 

my expectation was -

first refresh (today = August 8 2023)  => gets 2 years ago from toady. and last day -

meaning:

one call with

RangeStart = August 7 2021

RangeEnd = August 8 2023 (today)

one call with 

last day =>RangeStart = August 7 2023; RangeEnd = August 8 2023 (today)

 

next refresh (today) => get only the last day - one call with RangeStart = August 7 2023; RangeEnd = August 8 2023 (today)

next refresh (today) => get only the last day - one call with RangeStart = August 7 2023; RangeEnd = August 8 2023 (today)

 

basically LTE - is not a must. I can call to server without sending it. and it will calculated it as today. which its ok for all calls.

 

can you please explain more, so I can understand?

 

 

 

 

 

RangeStart -> used as GTE param sent to server
RangeEnd -> used as TLE param sent to server
On the server its allow only GTE and TLE, not GT and TL. Why is it important?

 

If both RangeStart and RangeEnd are inclusive then you risk duplicating data in adjacent partitions.

 

 

how its takes the setting I've enter in Power BI Desktop (2 years archive, 1 day before refresh) and using it when I perform refersh on Power BI Service

 

1. You specified 2 years for archive.  That means the Power BI service will create partitions for each calendar year in that range, meaning this can be up to three partitions, not just the two you think you specified.

2. You specified 1 day for refresh.  That means a couple of things.  First of all, you will see up to 32 daily partitions. Then (because of 1.) you will see that the Power BI Service is consolidating these daily partitions into monthly, quarterly and yearly partitions (all in calendar terms).  This is done for you automatically.  And secondly if you use an XMLA query tool you can see the last refresh date for each partition so you can confirm that you your newest daily partition is indeed the only one that got touched  (except for consolidation days).

 

I've upgrade my licence to Premium Per User licence, but still can't get into the workspase settings to get the url so I could connect to with external tools like XMLA to see the partitions

what am I missing?

Screenshot 2023-08-10 at 16.33.34.png

Screenshot 2023-08-10 at 16.33.16.png

  

I don't think that works for "My Workspace".  Try with a proper shared workspace.

you are correct. I needed to create new workspace to have the option to get the URL
Thanks

 

Screenshot 2023-08-17 at 9.22.14.png

 

 

@lbendlin Thanks

Can I investigate the partitions of dataset with Pro license?

I believe so, but cannot say for sure. Try it via DAX Studio or SSMS.

LiranRom
Helper I
Helper I

@lbendlin - can you please advice? 

You must not use GTE and LTE.  Only one of the parameters can be inclusive. Use GTE and LT.

 

Every time you make meta data changes to your query you will reset the partitions. It takes one more refresh to get back into the desired partition structure. If you don't like that, use ALM Toolkit and XMLA partition refreshes.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.