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
Vanessa250919
Helper IV
Helper IV

Date remove delimiter

Hi community,

 

How to removed the delimiter between this date format 04/11/2020 for have this format 20200411 ? 

 

Have  a good day and thanks ! 

1 ACCEPTED SOLUTION

@Vanessa250919 ,

 

Which date format did you input ? Also, before this new column... is your column formated as date ?

Get this new code:

 

Date.ToText([Column1], "yyyyMMdd")

 

I missed the upper double M.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

7 REPLIES 7
camargos88
Community Champion
Community Champion

Hi @Vanessa250919 ,

 

Try this code on Power Query:

 

Capture.PNG



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



@camargos88 Thank you, I just try but i have a null data.

 

Capture.JPG

@Vanessa250919 ,

 

It's not a problem, if null it will return null.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



@camargos88  I want say, In the new collumn the date is not correct 

 

05/05/2020 = 20200500

 

 

@Vanessa250919 ,

 

Which date format did you input ? Also, before this new column... is your column formated as date ?

Get this new code:

 

Date.ToText([Column1], "yyyyMMdd")

 

I missed the upper double M.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



It's OK ! Thank you so much ! 

Expanding on what @camargos88  provided, when adding the new column, test for null

 

if [Date] <> null then Date.ToText ([Date], "yyyymmdd") else "Invalid Date"

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.

Top Solution Authors