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
CCurrence
Regular Visitor

Expression Error Help Needed

Expression.Error: We cannot apply operator - to types Number and Text.
Details:
Operator=-
Left=-100
Right=

 

The expression error is in a new custom column called amount.

 

I changed the debit, credit, and new amount columns to all match... I tried decimal, currency, and text - the error did not disappear.

 

Below is a screenshot of the custom column formula... why am i getting this error?

 

Thanks!

 

CCurrence_0-1693932435572.png

 

 

 

6 REPLIES 6
mussaenda
Super User
Super User

Hi @CCurrence ,

 

it is because of the nulls

replace your nulls with 0 

Unfortunately, that did not work... I replaced null with 0 in both the debit and credit columns and I am still getting the error.  See the larger screenshot below.

 

Please - any more ideas to help me?  THANKS ALL

 

CCurrence_0-1694012973835.png

 

CCurrence
Regular Visitor

CCurrence_0-1693941580370.png

 

 

Hi - See screenshot. Unfortunately, that does not help.  I tried decimal, text, and currency already... making sure all 3 fields match.  still getting the error.  

 

Any other ideas???  Thanks!

CCurrence
Regular Visitor

This is another screenshot that may help... Thanks all - I really appreciate the assistance.

 

CCurrence_0-1693934327219.png

 

Share your work-in-progress Power BI file via OneDrive, Google Drive or Similar anonymously, and will take a look.

Currently, the Data Type is set as Text needs to be changed from Text

to Decimal Number.

foodd_0-1693937342059.pngfoodd_1-1693937522091.png

 

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!

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.

Top Solution Authors