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
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
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!

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.