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
aAmirkHan
Helper II
Helper II

Blank date is coming in Power Query

Hi,

 

I am importing a CSV file containing more than 700K in Power Query. However, I am also getting null in my date column in 

PQ. Although I have checked the date in my source CSV file, there is not a blank date in the date column.  

Can you please help me how to fix it?

 

 

Power BI.jpg

Excel.jpg

 

1 ACCEPTED SOLUTION
Omid_Motamedise
Memorable Member
Memorable Member

In the step of extracting data from csv rewrite the formula as bellow

 

Text.Csv(
File.Contents("C:\YourFilePath"),
[Delimiter=",", Columns=8, Encoding=65001, QuoteStyle=QuoteStyle.Csv]

View solution in original post

5 REPLIES 5
Omid_Motamedise
Memorable Member
Memorable Member

In the step of extracting data from csv rewrite the formula as bellow

 

Text.Csv(
File.Contents("C:\YourFilePath"),
[Delimiter=",", Columns=8, Encoding=65001, QuoteStyle=QuoteStyle.Csv]

Thank you @Omid_Motamedise 

The above step is working fine for me.

lbendlin
Super User
Super User

not there.  click on the settings icon next to the "Source" step.  

 

lbendlin_0-1731339373182.png

 

aAmirkHan
Helper II
Helper II

Thank you @lbendlin for the response.

I am still unsure and seeking your advice. Please let me know what option I should choose while importing CSV file data in Power Query. Please refer to the screenshot below.

 

PQ Screen shot.jpg

lbendlin
Super User
Super User

change your CSV ingestion to "ignore quoted line breaks"  and make sure you use the correct encoding.

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.

Top Solution Authors