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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Noadekat
New Member

ERROR BETWEEN INTEGER AND TEXT

Hello everyone,

 

Can you please help me with the following formula?

 

What I want to do is I made a column with numbers where multiple columns where summed, but there are rows which are empty. I want to fill up the empty rows with the number 0. 
 

The formula I used is:

 

Totaal aantal fouten bewerkt = if([Totaal aantal fouten] = "" , 0 , [Totaal aantal fouten])
 
But it doesn't work. I've got the error: DAX comparison operations do not support comparing values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values.
 
Can you please help me with this?
 
Thanks in forward! 
1 ACCEPTED SOLUTION
Damian_CT_Nom
Helper I
Helper I

"" is a text, therefore the error. Try using:
= if(ISBLANK([Totaal aantal fouten]), 0 , [Totaal aantal fouten])
that should work

View solution in original post

2 REPLIES 2
Noadekat
New Member

Yes it does, thank you! 

Damian_CT_Nom
Helper I
Helper I

"" is a text, therefore the error. Try using:
= if(ISBLANK([Totaal aantal fouten]), 0 , [Totaal aantal fouten])
that should work

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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