Convert Negative Numbers to Zero?

X

Xavier

Hi, I have a query with an expression field that calculates the number
of days late by subtracting the due date from the completion date.
This of course means that if a task was completed on-time, the number
will be negative. Since I want to display both late and on-time tasks,
is there a way to display negative numbers as '0'? Thanks!

Xavier
 
G

Guest

IIF([YourSubtraction]<0, 0,[YourSubtraction])
OR
IIF([YourSubtraction]<0, "On-time",[YourSubtraction])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top