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! Request now

Reply
RKM
Helper IV
Helper IV

Hybrid Mode in Incremental Load - How to tackle calculated datetime column scenario please

I am having some hard Time to grasp the idea of Hybrid (Dec 21 Release) Mode of Incremental refresh and wondering if practically I can fit this in my scenario. (Please Note: I am aware what is incremental load, how to set up etc and have done that several times, so my question is in Particular about the Real Time /Hybrid mode enhancement of Power BI per December 2021 update)

 

So, here I am showing a representative set of data. Materials are scheduled to arrive at different calendar days (Includes Future Dates), then once it arrives, We get the Arrived_At and Processed By - columns updated.

Sometime some of the Materials are picked for sample test and then SampleTest_At column gets updated and in general once item is processed then Processed_At column is populated.

[Sampling, Processing happens with in a day of arrival usually and arrival is usually either same calendarDay of Schedule or sometime 1 or 2 hours before midnight last day.]

Although, Sampling and Processing are not sequential. Either can happen before other.

 

What I did in past was : Creating a derived column in View, with logic as.

ISNULL ( Max(Arrived_At_UTC, SampleTest_At_UTC, Processed_At_UTC) , IIF(CalendarDay_UTC > getdate, getdate, CalendarDay) 

 

~ Again above line is just for illustration. i.e. Basically pick the max among Arrived, SampleTest, Processed - Datetime if any of these exists, otherwise pick CalendarDay as long as it is less than today, else, pick Getdate.

With That Derived Column : [ChangedData_DateTime]

I was happily using Incremenal Refresh with Config as [2Years For Archive], [7 Days for Incremental], Refresh Schedule Daily 24 times each hour. 

 

Now I want to enable DirectQuery to go into Hybrid mode under IR Policy. But the challenge is Above Type of Calculated View Columns are not allowed under Hybrid Mode in Incremental Refresh Scenario.

I really/badly want to get the some workaround so to not force users wait an hour to see latest data. Any idea please?

 

MaterialProcessed ByCalendarDay_UTCArrived_At_UTCSampleTest_At_UTCProcessed_At_UTC
TeaJim04-Jan-2022 00:00:0003-Jan-2022 23:11:34 04-Jan-2022 01:48:34
CoffeeJim04-Jan-2022 00:00:0004-Jan-2022 00:12:3004-Jan-2022 02:20:0004-Jan-2022  01:48:34
TeaJim30-Jan-2022 00:00:0030-Jan-2022 00:05:04 30-Jan-2022 02:00:0030-Jan-2022 03:20:21
CoffeeJim30-Jan-2022 00:00:0030-Jan-2022 00:12:30  
Tea 02-Feb-2022 00:00:00   
Coffee 02-Feb-2022 00:00:00   

 

7 REPLIES 7
Anonymous
Not applicable

Hi @RKM,

If you are working with the simple if statement logic to replace values, have you tried to add a custom on the query edit side?
These column values will be calculated every time the source table update and been transformed and fixed as static values into data model tables.
Regards,

Xiaoxin Sheng

bcdobbs
Community Champion
Community Champion

Can you elaborate a little on the data source? Is it SQL Server? Are you creating the calculated column in a sql view?



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Yes SQL Server. Calculated column in SQL View

bcdobbs
Community Champion
Community Champion

What error does it give?

 

I'm guessing that because the live aspect runs in direct query mode and is assuming you have a large amount of data you really are going to need an index on the datetime column. Without an index performance would be aweful.

 

My first thought was a persisted computed column on the base table itself but you're using todays date in the calculation which will block that route. 

Will ponder on it.

 

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
bcdobbs
Community Champion
Community Champion

What range of dates do

you actually want in the direct query partition? Wondering if you can make it work by creating a persisted computed column in the base sql table but rather than use getdate

just substitute a static date a way in the future. May be over simplification depending on your specific requirements.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

I think its less to do with volume of data or even index etc... Power BI simply doesn't allow calculated column in Hybrid Mode on it's IR Policy.  Upto simple incremental Load, its fine. I just tried producing the error for you in case you are interested....

RKM_0-1643534457115.png

~ Now coming to other point about "Persisted Computed Column" - Yes you are totally right. Since everything is current day based (which should be because end of day we want incremental refresh too for limited scope) that's why Persisted column /Indexed View etc. not option.

bcdobbs
Community Champion
Community Champion

Think our messages crossed! Ignore my last post.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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