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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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

 

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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