Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

New data column added when loading the raw table

Hi people,

I would like to add a new cloumn, which is based on the data loaded, when loading the data - Say, the raw table looks like:

Number
1
2
3
4
5
6
7
8
9
10

I want to have another column, if bitand 3 = 3, added to the table so that the raw data table could be like

NumberBitand3
1NO
2NO
3YES
4NO
5NO
6NO
7YES
8NO
9NO
10NO

In order to get that, how should I change the loading setting correspondingly?

Thanks in advance!

Thomas

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

LOAD

Number

,if(Number bitand 3 = 3,'YES','NO') as Bitand3

;

// your real data source should replace the below

LOAD recno() as Number

AUTOGENERATE 10

;

View solution in original post

3 Replies
Sokkorn
Master
Master

Hi Thomas,

Can you give more data source? Your raw table is only one column so it difficult to understand data source. Thus we need raw table (at lease 3 column), condition and the result that you need.

Regards,

Sokkorn Cheav

johnw
Champion III
Champion III

LOAD

Number

,if(Number bitand 3 = 3,'YES','NO') as Bitand3

;

// your real data source should replace the below

LOAD recno() as Number

AUTOGENERATE 10

;

Not applicable
Author

Thanks John, problem solved.