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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Cannot convert value '' of type Text to type Integer

I was trying in DAX to get date field. CSV is my source wher i get the date field. By default in the query it considers it to be texts.

I create 3 different columns to extract Year, Month and Date.

I create 4th column to get date conversion as below:

 

trf_Due-Date_Calculee_Conv = DATE('Updated Alert-KPI Status'[trf_Due_Consolidee_year],
'Updated Alert-KPI Status'[trf_Due_Consolidee_month],
'Updated Alert-KPI Status'[trf_Due_Consolidee_day])
 
It gives me error "Cannot convert value '' of type Text to type Integer".
To my surprise, i aply the similar formulae in other reports and another field in the same file. It works fine.
But what mistake am i doing in deriving this column
 
Any help in this ?
 
I could see the data tyr to be text of Year, Month and day clumns i use in the date conversion column.
 
 
 
 
1 ACCEPTED SOLUTION
Omega
Impactful Individual
Impactful Individual

It might be because one of the rows contain blank value or non numberic value. In query editor, try filtering each column for a non numeric value.  

View solution in original post

2 REPLIES 2
Omega
Impactful Individual
Impactful Individual

It might be because one of the rows contain blank value or non numberic value. In query editor, try filtering each column for a non numeric value.  

affan
Solution Sage
Solution Sage

Hi @Anonymous

 

Can you share the date column data imported in Pbix. You can remove all other data and just keep the complete date column imported from CSV.

 

 

Regards

Affan

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.