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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Andresrsg
Frequent Visitor

ODBC - Incremental refresh - Dataflow

Hi All, 

 

I'm trying to implement incremental refresh in a dataflow, retrieving data from an  ODBC.

I'm following the steps from Guy in A Cube Link , but found myself stuck with errors in the SQL statement I refer to in my Native query.

They use a Datekey integer, but unfortunately my databse only works with DateTime.
If you can give me a tip it would be much appreciated.

 

Source = Odbc.Query("dsn=MYConnection", query),

Andresrsg_0-1628062700327.png

Andresrsg_1-1628062774594.png

@GuyInACube 


Thank you, 

Andres

 

 

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

hi, @Andresrsg 

 

May I ask if your problem has been solved? Does the information mentioned above help?

If your problem is solved, we will be glad that you can share your solution here.😀

 

 

Best Regards,
Community Support Team _ Zeon Zheng

jeffshieldsdev
Solution Sage
Solution Sage

Shouldn't the date time be wrapped in single quotes?

lbendlin
Super User
Super User

You may want to use Text.Format() rather than DateTime.ToText()

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.