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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
krobinson
New Member

Date conversion

I've imported a csv file into Power Query and have a field predominantly for dates in yyyymmdd format, but where there isn't a date, it's showing as blank.

 

how do I create a normal date format dd/mm/yyyy from yyyymmdd in power query and make null values blank?

Thanks

4 REPLIES 4
audreygerred
Super User
Super User

Hello! In Power Query, click on your date column so that it is highlighted, then click the transform ribbon, then click the dropdown for Data Type and select Date.

 

Here is an example I created:

audreygerred_0-1695821360126.png

After changed the type to Date it now appears like this:

audreygerred_1-1695821392396.png

M Code created by changing the type: #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type date}})

 





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

Proud to be a Super User!





That gives me the date in the format I want it. But in the original import, blanks became null. So I want to get rid of the null and leave those as blank

 

krobinson_0-1695821833217.png

Thanks

I don't believe you can change a record to blank when the field is formatted as Date. A common practice I see is replacing the nulls with a date that is obvioulsy not correct (such as 1/1/1900). Also, if you leave as null, it will still appear as a blank in the viz (see top row of below viz).

audreygerred_0-1695823056889.png

 





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

Proud to be a Super User!





I'll leave it as null then and convert the date to normal format.

Thans for your help

Helpful resources

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

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.