Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

How to create another Column in script

I have this table,

  

TYPEDATE_01DATE_02
AType AType B
BType AType B
AType AType B
BType AType B
BType AType B
BType AType B
AType AType B
AType AType B

and i want to create a new column DATE_03 when if ([TYPE]="A";[DATE_01];[DATE_02])

This would result table

TYPEDATE_01DATE_02DATE_03
AType AType BType A
BType AType BType B
AType AType BType A
BType AType BType B
BType AType BType B
BType AType BType B
AType AType BType A
AType AType BType A
1 Reply

Re: How to create another Column in script

May be this:

LOAD TYPE,

          DATE_01,

          DATE_02,

          If(TYPE = 'A', DATE_01, DATE_02) as DATE_03

FROM source;

Community Browser