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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Humanoidhuman
Frequent Visitor

Convert Full Date/ Time Stamp to date in separate column in BI Desktop

Hi,

 

I have an automated flow which downloads and saves my excel sheet to a predefined location on a daily basis. I have connected the excel file to my BI desktop and I am trying to build reports. 

However, the issue that I am facing is the date column looks like this 

Humanoidhuman_0-1710774528767.png

I am trying to create a new column which will contain only the date (as the time is not as relevant for my report at this point). I tried using this

Humanoidhuman_1-1710774619038.png

but to no avail. 

 

If anyone can kindly help me out with this, it would be highly appreciated!!

1 ACCEPTED SOLUTION
Humanoidhuman
Frequent Visitor

I managed to figure out a solution, although I did it in two steps. Maybe someone might know an easier way. However, still putting my method here for reference. First I created a column with the following DAX code

Date Only = LEFT('Table'[Date], FIND(" ", 'Table'[Date]) - 1)

This gave me dates in the following format 
Humanoidhuman_1-1710778080430.png

 

 

In order to make it a bit more concise, I then converted the long date into short date format using another columna and the following DAX code:

Date Numeric = FORMAT('Table'[Date Only], "MM-DD-YYYY").
Humanoidhuman_2-1710778162732.png

 



View solution in original post

3 REPLIES 3
Humanoidhuman
Frequent Visitor

I managed to figure out a solution, although I did it in two steps. Maybe someone might know an easier way. However, still putting my method here for reference. First I created a column with the following DAX code

Date Only = LEFT('Table'[Date], FIND(" ", 'Table'[Date]) - 1)

This gave me dates in the following format 
Humanoidhuman_1-1710778080430.png

 

 

In order to make it a bit more concise, I then converted the long date into short date format using another columna and the following DAX code:

Date Numeric = FORMAT('Table'[Date Only], "MM-DD-YYYY").
Humanoidhuman_2-1710778162732.png

 



Daoud_H
Helper I
Helper I

Hi @Humanoidhuman,

You should remove the letters at the end by doing this : 

Date_2 = 
VAR New_Date = LEFT('Table'[date], LEN('Table'[date]) - 3)
VAR UTC_Date = FORMAT(New_Date, "mm/dd/yyy")
Return UTC_Date

 

This would work after that.

Thanks so much @Daoud_H . I tried this. However, this basically just took out the timezone. Now it is displaying as 

Humanoidhuman_0-1710777937960.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.