cancel
Showing results for 
Search instead for 
Did you mean: 

datawindow technique

Former Member
0 Kudos

Hi,

Have across a situation as under. Does datawindow provide a way?

Have a transaction table  as under. While data entry, values F and G under column Spec must be computed as per the given formula. The challenge is that the items in column Spec are dynamic and it comes from a master table. How do i maintain the formula? Is there any datawindow technique can apply here?

SpecformulaValue
ANA6.33
BNA5.33
CNA3
DNA7.16
ENA3
FA-B-C-2
GE-(D*2)-11.32

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You should be able to use a computed column for column formula:

You need to work out the right syntax but the idea is something like:

if(Spec="F", A-B-C, if(Spec="G", E-(D*2), 0)

It depends if it is a string or numeric result what you should put for NA.

Additionally you can add an expression to make the formula column visible depending on if Spec is either F or G  or if it is not

Ben