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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

UTC to local Hour Number

Hi All,

 

I have a transaction table with a datetime column  in UTC (2018-12-30T21:36:37Z) format. I also have Lat, Long, Address etc. Data is for all the stores spread across US. 

 

I want to creat a column with hour number (ex. 5, 23, 18) so that hour number represents the local time hour where transaction happend (example: if in NY, transaction happend at 4:23 pm est, it should show 4 and not UTC or any other time). Our aim is to analyze and compare  hours at which transactions happens in different states of the US. 

(Note - column should take care of daylighsavings)

 

I am struggling with this for quite sometime. I was looking at this video for help - https://www.youtube.com/watch?v=M1zquwmpnZE&t=84s , but maybe not helpful in my case. Please suggest.

 

Thanks!

3 REPLIES 3
CheenuSing
Community Champion
Community Champion

Hi @Anonymous ,

 

Can you upload sampledata ( not picture ), pbix and output expected to Google/One Drive and share the link here to find a solution.

Cheers

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!
Anonymous
Not applicable

@CheenuSing  v-caliao-msft  

I am still looking for somekind of suggestion. Thanks!

Anonymous
Not applicable

I have a table with data in column from A to H. I just want to create two additional columns I and J. I am struggling to create column I. I have attached an excel file. Same excel file is uploaded in PBIX and that file is also attached.

 

https://drive.google.com/drive/folders/1OXBVHAKCrhT8Ez1gnm1jYfO71TLfbxtv?usp=sharing

 

Thanks,

Deepak

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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