Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1470
Formula Builder
posted

I have a problem using the Formula Builder, I have to sum  grid column B and C based on the content of another grid column A, the sum should be B minus C. Lets take your Formula Builder At Run-Time sample, where I put the following formulas to [Unbound 1] 

1. Problem: Summing based on the content of a column: 

The following syntax works:  

sum (if ( 1=1, [Int32 1], [Int32 2] ) , [Int32 2] )

if I replace 1=1 by [Key] < 5 I get a VALUE error (this should sum only for those rows, where key < 5)

sum (if ( [Key] < 5, [Int32 1], [Int32 2] ))

 

 

2. Problem: Summing with calculated column

As in the example above, but I want to subtract [Int32_2] instead of adding it, therefor multiply by -1 produces a VALUE error

sum (if ( 1=1, [Int32 1], [Int32 2] ) , (-1) * [Int32 2] )

 

What is wrong in these formulas? Is there any detailed formular builder documentation available ?

Thankyou for your help.

Andreas

 

Parents Reply Children
No Data