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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

 

foodd
Community Champion
Community Champion

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

foodd
Community Champion
Community Champion

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors