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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
SergioPerdiz
Frequent Visitor

Shortcut shows different data

I have a shortcut in the silver lakehouse to a table in the bronze lakehouse.

However it seems like the data is not updated.

 

When I look at the SQL endpoint of the bronze lakehouse I get the below result for one specific example, which has the correct EndDate (2024-06-30)

SergioPerdiz_0-1720706523649.png

 

However when I use the shortcut in the silver lakehouse to the same table from the bronze lakehouse it shows a EndDate of (2024-07-30).

 

SergioPerdiz_1-1720706658244.png

 

 

This post, Datalake shortcut is not showing the same data (i.... - Microsoft Fabric Community, seems to be the same issue, but there isn't a clear solution.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SergioPerdiz,

I think this should be related to the setting which define the ‘data time zone’, by default datetime values will be stored with UTC format.

For the first one , your SQL statement get the records from table. For the second one that run in notebook, you have set the time zone offset which may affect the datetime values.

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @SergioPerdiz,

I think this should be related to the setting which define the ‘data time zone’, by default datetime values will be stored with UTC format.

For the first one , your SQL statement get the records from table. For the second one that run in notebook, you have set the time zone offset which may affect the datetime values.

Regards,

Xiaoxin Sheng

Hi @Anonymous,

 

Thanks, that was indeed the issue!

Then I have another question how can I handle the following.

The notebook is executed around 01:00 AM GMT +2, which is 11:00 PM UTC, however for some calculations I use the below code. 

 

# Get today's date 
today_date = current_date().cast("string")

 

So that means that for last night's run it would return 2024/07/11, but it should be 2024/07/12.

A solution could be to change the code to the below, but I'm wondering if this would be the correct/best way to do it.

 

# Get today's date 
today_date = (current_date() +1).cast("string")

 

Anonymous
Not applicable

HI @SergioPerdiz,

If you had to calculate with specific time zone datetime, you can add a new column to the table to calculate with the offset between UTC and local time zone. Than you can use the new column to work as local datetime.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
August Fabric Update Carousel

Fabric Monthly Update - August 2025

Check out the August 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.