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
Gelain
Frequent Visitor

ERROR BETWEEN INTEGER AND TEXT

 

Hello!

 

I created a calculated table, but the following error occurred in the formula:

 

FORMULA = FILTER (PBICAIXACNPJ; PBICAIXACNPJ[CODE] = "3")

 

DAX comparison operations do not support the comparison of Integer-type values ​​with values ​​of type Text. Consider using the VALUE or FORMAT function to convert one of the values. I changed the data type, but it did not work.

 

Please help me.

1 ACCEPTED SOLUTION
JoHo_BI
Responsive Resident
Responsive Resident

Try not using quote marks for the 3, just leave it as is. 

 

Quote marks should only be for text values, otherwise it'll auto chang ethe datatype to text. 

View solution in original post

2 REPLIES 2
JoHo_BI
Responsive Resident
Responsive Resident

Try not using quote marks for the 3, just leave it as is. 

 

Quote marks should only be for text values, otherwise it'll auto chang ethe datatype to text. 

@JoHo_BI,

 

Thanks for helping me. I did not realize this detail!

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.