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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.