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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

Check out the March 2026 Fabric update to learn about new features.