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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.