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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Vanessa250919
Helper V
Helper V

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors