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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.