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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
chieboi
New Member

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

pls help to determine the issue thou the format is text 
 
 
chieboi_0-1717995643001.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @chieboi ,

 

I’d like to acknowledge the valuable input provided by the @Rupak_bi . Their initial ideas were instrumental in guiding my approach. However, I noticed that further details were needed to fully understand the issue. 

 

DAX does not perform implicit conversions on Boolean or string values ​​when comparing values. This behavior may lead to unexpected results or errors if the data types involved in the comparison are incompatible.

 

You can click on the column name involved in the expression to manually change its type to text format.

vkaiyuemsft_0-1718086111723.png

 

You can also use the FORMAT function to convert a value to text according to a specified format. For more details, refer to the documentation: FORMAT function (DAX) - DAX | Microsoft Learn

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Rupak_bi
Super User
Super User

I am not sure as you have not shared sample data, but just check if the "PalletID" is numbers or text. also change your if statement in case of blank as below and check.

 

if(expression <> blank(), ,)



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.