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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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