Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello to all,
I have a problem.
I have a field called SCENARIO and I would like to save the value of this in a variable, but according to the following condition:
I tried with an if but without success.
Thank you,
Livio
Where exactly are you trying to use the if statement? I am not sure I understand
In a variable, I want save the value in a variable
I am not sure I am following your requirement... can you elaborate?
I have a field with value like: ACT,FC 1, Fc 2, BDG, ....
I want save the value in a variable with this conditions:
Like this?
T1:
Load
SCENARIO,
If(SubStringCount(Lower(SCENARIO),'fc 1') AND SubStringCount(Lower(SCENARIO),'fc 2') AND SubStringCount(Lower(SCENARIO),'fc 3'),'FC 3',
If(SubStringCount(Lower(SCENARIO),'fc 1') AND SubStringCount(Lower(SCENARIO),'fc 2'),'FC 2',
If(SubStringCount(Lower(SCENARIO),'fc 1'),'FC 1'
))) AS [New Scenario]
inline
[
SCENARIO
Fc 1,Fc 2,FC 3
FC 1, fC 2,ABD,EGF
Fc 3,
Fc 1,
FC 24
](delimiter is '|');