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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.