Problem with changing the type of date needed for incremental refresh

I’m asking for your help. I know that I can do incremental refresh in premium version but I came to the point that first I need to convert the date format „YYYMMDD” into power query on datetime with function (x as datetime) => Date.Year(x)*10000 + Date.Month(x)*100 + Date.Day(x).

Unfortunately I can’t handle it. Please help me how to do it. I attach an pbx file with a sample of csv data.

Sample pbx & data csv:

Hi @Harris, we aim to consistently improve the topics being posted on the forum to help you in getting a strong solution faster. While waiting for a response, here are some tips so you can get the most out of the forum and other Enterprise DNA resources.

  • Use the forum search to discover if your query has been asked before by another member.

  • When posting a topic with formula make sure that it is correctly formatted to preformatted text </>.

  • Use the proper category that best describes your topic

  • Provide as much context to a question as possible.

  • Include demo pbix file, images of the entire scenario you are dealing with, a screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details.

I also suggest that you check the forum guideline How To Use The Enterprise DNA Support Forum. Not adhering to it may sometimes cause a delay in getting an answer.

Hi @Harris,

As I understand it you need to convert the DimDate_ID into a value of datetime type.
First extracted the date

Then converted the date to type datetime now there is no time value so each record has time 00:00:00

Also added the Parameters for RangeStart and RangeEnd and filterd your data table.

Here’s the file. I hope this was helpful.
incremental refresh.pbix (68.8 KB)

Hi @Harris, we’ve noticed that no response has been received from you since the 10th of March. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the checkbox. Thanks!