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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to convert dates from data source Active Directory 1.32242E+17 to dd/mm/yyyy

Hi

 

I've been asked to create an AD report. But when I import the following field; accountexpires, lastlogon, lastlogonTimestamp, pwdLastSet, they appear in a format such as 1.32242E+17.

 

How do I convert them to dd/mm/yyyy?

 

Thanks in advance

Martin

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @v-zhenbw-msft 

 

Thank you for your response.

 

I solved this by using this formula:

 

Last Log In Date = COALESCE(DIVIDE ( [user.lastLogon], 8.64 * 10 ^ 11 ) - 109205,0)
 
Thanks
 
Martin

View solution in original post

3 REPLIES 3
Matt-Butler
Regular Visitor

A better solution is to just change the format to date / time. 

 

v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

In the data source, is the type a Date/Time format or scientific notation?

In Power Query Editor, please delete the change Type, then what is the result of the column? Is it a yyyy/mm/dd hh:mm:ss type?

 

how1.jpg

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @v-zhenbw-msft 

 

Thank you for your response.

 

I solved this by using this formula:

 

Last Log In Date = COALESCE(DIVIDE ( [user.lastLogon], 8.64 * 10 ^ 11 ) - 109205,0)
 
Thanks
 
Martin

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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