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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Pallab_Kundu
Regular Visitor

Wrong Data in Time Zone calculation

CreatedCreatedDate ReportedDate Reported

Hi,

 

I have subtracted the two cloumn value which is Timezone formatted.Value as given below 

 

Scenario 1

Custom=[#"Created (UTC)"]-[#"Date Reported (UTC)"]

Created (UTC)=10/30/2018 12:37:36 PM +00:00

Date Reported (UTC)=10/30/2018 12:35:00 PM -07:00

As a result I got, Custom=-06:57:24.

 

Scenario 2

Custom1=[Created]-[Date Reported]

[Created]=10/30/2018 12:37:36 PM +00:00

[Date Reported]=10/30/2018 7:35:00 PM +00:00

Aa result a I got, Custom1= -06:57:24

 

In Scenario 1 there should be only 2 minute difference in time gap then why getting such result. Also in Scenario 2 there is 5:02:36 hrs time difference but get the same result. Can any one help me to figure out this accurate calculation? What is the solution to get actual time data?

 

 

 

 

 

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @Pallab_Kundu,

For the first issue, based on my test, I suggest you create a calculated column in data view instead in query editor:

1.PNG

For the second issue, I think the right answer shoud be 06:57:24? I think if the [Date Reported]=10/30/2018 7:35:00 AM +00:00, it could be 5:02:36, right?

1.PNG 

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-danhe-msft
Employee
Employee

Hi @Pallab_Kundu,

For the first issue, based on my test, I suggest you create a calculated column in data view instead in query editor:

1.PNG

For the second issue, I think the right answer shoud be 06:57:24? I think if the [Date Reported]=10/30/2018 7:35:00 AM +00:00, it could be 5:02:36, right?

1.PNG 

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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