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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Community Champion
Community Champion

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.