Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 869 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I am trying to have my CURRENT (number calculation) field display results (DESIRED) based upon 4 scenarios. Using a CASE function. Two work, two do not. The CASE statement shown in example is one, I've separated to make it easier to distinguish the scenarios.

image.thumb.png.182f822a0d6d73cae5bec54a78109835.png

Edited by Raizel
Posted

Not sure if this is what your after:

Case ( 
amount < 0 ; -( units * per unit )  ;
amount > 0 and units > 0 ; units * per unit ;
amount > 0 and IsEmpty ( units ) ; balance * per unit ;
amount > 0 and units > 0 ;units * per unit ;
amount > 0 and units < 0 ; Abs( units * per unit )
)

 

Posted

Not sure why the case condition is "AMOUNT" and not "UNITS" as I used. 

This topic is 869 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.