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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.