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
Anonymous
Not applicable

DAX comparison operations do not support comparing values of type Text with values of type Integer

I facing the error for newly created columns.

Total_Review_Not_Blocked =
IF('4-all_daily_companies_review_listing'[Total_Review_Moderated]=1 &&
'4-all_daily_companies_review_listing'[is_blocked]=0 &&
OR('4-all_daily_companies_review_listing'[is_overridden]=1,'4-all_daily_companies_review_listing'[is_overridden]=0),
1,0)
 
Total_Review_Published =
IF('4-all_daily_companies_review_listing'[Total_Review_Not_Blocked]=1 &&
NOT(ISBLANK('4-all_daily_companies_review_listing'[company_id_captured])),
1,0)

 

Power BI return with this error msg: DAX comparison operations do not support comparing values of type Text with values of type Integer

 

Anyone can solve this issue?

2 ACCEPTED SOLUTIONS
HotChilli
Super User
Super User

The first thing is to check the data type of all the columns in the DAX formulas:

 

[Total_Review_Moderated]
[is_blocked]
[is_overridden]

[Total_Review_Not_Blocked]
[company_id_captured]

They should all be a number

View solution in original post

Anonymous
Not applicable

4 REPLIES 4
sghanwat
New Member

I got 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." for new column.
 
 
Homeowner = if([HomeOwnerFlag]=0,"Not Homeowner","Homeowner")
 
I only changed type of comparison value 
 
 
Homeowner = if([HomeOwnerFlag]="0","Not Homeowner","Homeowner")
 
it executed without error.
 
HotChilli
Super User
Super User

The first thing is to check the data type of all the columns in the DAX formulas:

 

[Total_Review_Moderated]
[is_blocked]
[is_overridden]

[Total_Review_Not_Blocked]
[company_id_captured]

They should all be a number

Anonymous
Not applicable

Thanks it worked 🙂

Anonymous
Not applicable

Thanks, solved.

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.

Top Solution Authors