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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AliBiktash99
New Member

Error Message Measure in PBI ( Urgent Please )

Revenue =
Var CODFees = IF(
AND(deliveries[sender._id] = "UiMNuYTbVmn",deliveries[cod.amount]>0),deliveries[pricing.priceBeforeVat]+7
,deliveries[pricing.priceBeforeVat]
)
RETURN
IF(
deliveries[sender._id] = "UiMNuYTbVmn",
CODFees,
deliveries[pricing.priceBeforeVat] - deliveries[pricing.expediteFee.amount]
)


Give me 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.

Can anyone support urgently

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @AliBiktash99 
The "cod. amount" / other variable is a text...
Please check the data types and change them to numbers :

Ritaf1983_0-1708492128450.png

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @AliBiktash99 
The "cod. amount" / other variable is a text...
Please check the data types and change them to numbers :

Ritaf1983_0-1708492128450.png

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.