Forum Discussion

marek123's avatar
marek123
Regular Visitor
5 years ago

Incremental refresh date as char

Hi All, I am configuring incremental refresh according to documentation https://docs.microsoft.com/en-us/power-bi/service-premium-incremental-refresh

The difference here is that our databases have the dates in the formats of YYYY-MM-DD HH:MM:SS as char data types. The hint in the document mentions to place this query in the filter step to convert to an integer: (x as datetime) => Date.Year(x)*10000 + Date.Month(x)*100 + Date.Day(x)

I am confused how to convert the parameters to fit them to my database.

Thank you in advance

Greetings

Marek

3 Replies