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
mkcongrove1
Advocate I
Advocate I

Has anyone gotten Incremental Refresh to work with only date?

All of the articles, and all of my searching tell me no - that I have to have my source data in DateTime. But wanted to see if there was some hidden knowledge that could be shared 🙂

 

My current hurdle is that I have multi-billion record tables that store date as a decimal (I'm not IT, don't ask me why). I can convert this to Integer easily. However, I'm afraid my database doesn't have the capacity to convert these billions of records to DateTime format, from their current Decimal format - the transformation will fail due to having to convert to text first and then to DateTime (I have yet to figure out how "Query folding DEFINITELY works with Snowflake", but that's a different issue).

 

I was successful in setting up the parameters and function to work with my date, but I run into my roadblock when I go to "Define Parameters" after importing. 

mkcongrove1_0-1706799080892.png

I know the error is because I don't have things in DateTime - so, has anyone figured out how to work around this issue?

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@mkcongrove1,

 

Incremental refresh does require a DateTime column. I've accomplished this with custom SQL and Snowflake functions such as TO_TIMESTAMP and TIMESTAMP_FROM_PARTS. Once you convert the decimal to integer, you can use TIMESTAMP_FROM_PARTS and SUBSTRING to construct a DateTime column. You might explore the most performant options for the DateTime conversion (Snowflake view, function, etc.).





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@mkcongrove1,

 

Incremental refresh does require a DateTime column. I've accomplished this with custom SQL and Snowflake functions such as TO_TIMESTAMP and TIMESTAMP_FROM_PARTS. Once you convert the decimal to integer, you can use TIMESTAMP_FROM_PARTS and SUBSTRING to construct a DateTime column. You might explore the most performant options for the DateTime conversion (Snowflake view, function, etc.).





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.