Discussion Board for collaboration related to QlikView App Development.
I need to have in the field [RES1] the value under.
NbreTA et NbreT are an expression
7 = sum (ALCL + SOCO) = 3 + 4
I don’t know, if it’s possible to have an expression like that or maybe an another method.
RES1 = Sum field [NbreT] if CAM=ALCL + (CAM=SOCO and CAM=OKI) and if LOC is not null
Try this as expression:
If(CAM = 'ALCL', NT + Below(total NT),if(CAM = 'SOCO' and LOC = '',NT,0)) or
If(CAM = 'ALCL', NT + Below(total NT),if(CAM = 'SOCO' and isnull(LOC),NT,0))
What does NT? It's NbreT no?
I try this expression
If(CAM = 'ALCL', NbreT + Below(total NbreT),if(CAM = 'SOCO' and LOC = '',NbreT,0)) or
If(CAM = 'ALCL', NbreT + Below(total NbreT),if(CAM = 'SOCO' and isnull(LOC),NbreT,0))
The value returns are false
Yes NT means NbreT no. I just tried to replicate your data. Can you please see the attached file. It gives me expected results.
I add some value in your example.
Try to explain if CAM = ALCL and LOC=SOCO + OKI we must to do the sum 3 + 4 + 11 = 18 the other value not change.
I want to have in new column
You need to play with the If statements, since your requirement is very specific. I think you would have to make nested IF conditions to achieve this.
Hope that helps you