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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
MelissaSnell
Helper I
Helper I

Time Difference Column Works in Power BI Desktop but Gateway Refresh Fails

In the Power BI Desktop Product, if your data contains two date-time columns then within your Query you can select those columns and add a new column that subtracts the two to give you the difference.

 

This seems to work in the Desktop Product and publishes OK to POwerBI.com.

 

However the scheduled  or manual refresh of the Dataset in PowerBI.com fails with an error "Type mismatch".

 

It is the Date-time difference column that causes the error, because if this is removed and the report re-published then you can Refresh the data without error.

 

Has this been reported as a bug, and  - if so - how can I find out what the status of it is?

 

 

1 ACCEPTED SOLUTION
TPalmer
Microsoft Employee
Microsoft Employee

Unfortunately this is a known issue but there's a straightforward workaround - you can convert the difference column (which is initially a "duration" type) to a decimal or whole number. The bug that olumns of duration type are not currently refreshing in the service is being tracked, but you won't have the same issue with a decimal or whole number column. Let us know if you hit anything else!

View solution in original post

2 REPLIES 2
TPalmer
Microsoft Employee
Microsoft Employee

Unfortunately this is a known issue but there's a straightforward workaround - you can convert the difference column (which is initially a "duration" type) to a decimal or whole number. The bug that olumns of duration type are not currently refreshing in the service is being tracked, but you won't have the same issue with a decimal or whole number column. Let us know if you hit anything else!

Hi there!

Sorry I didn't reply to your response more promptly, but I didn't seem to receive a notification email - must check my spam setttings!

 

I will check out your suggestion!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.