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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Data source issue

Hi 

I am trying to clean up some data that I have pulled however there is a date/time column which i would like to change to date but cannot figure out how to remove the time. 
Would anyone be able to help? I have tried to format cells but its not working.

Maleehah_0-1649860078068.png

 

1 ACCEPTED SOLUTION
regerror6
Frequent Visitor

This looks like an Excel question, but if the data is being stored as text, you could parse out the date components based on the position of the slashes.  Here is an example of something that might work by adding another column:

 

=DATE(
MID(F2,FIND("/",F2,FIND("/",F2,1)+1)+1,4),
MID(F2,1,FIND("/",F2,1)-1),
MID(F2,FIND("/",F2,1)+1,FIND("/",F2,FIND("/",F2,1)+1)-(FIND("/",F2,1)+1))
)

 

If you are using Power Query, the Detect Data Type button on the Transform tab will convert it from text to datetime.  Then, you could change it to date format.

 

Hopefully one of these options works!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

its is currently it date/time format - will this method still work?

 

Yes sorry i forgot to say it is on excel

Understood.  You may get better responses in an Excel forum (instead of Power BI), but if the value is truely datetime instead of text, you could use the INT function to drop the time component:

 

=INT(F2)

 

Try it out to see if it works.

regerror6
Frequent Visitor

This looks like an Excel question, but if the data is being stored as text, you could parse out the date components based on the position of the slashes.  Here is an example of something that might work by adding another column:

 

=DATE(
MID(F2,FIND("/",F2,FIND("/",F2,1)+1)+1,4),
MID(F2,1,FIND("/",F2,1)-1),
MID(F2,FIND("/",F2,1)+1,FIND("/",F2,FIND("/",F2,1)+1)-(FIND("/",F2,1)+1))
)

 

If you are using Power Query, the Detect Data Type button on the Transform tab will convert it from text to datetime.  Then, you could change it to date format.

 

Hopefully one of these options works!

Helpful resources

Announcements
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.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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