Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
qlik sense
Hiya
I have two tables
Table A and Table B
in both tables they have the same column name -TimeDaySessions
Table A -TimeDaySessions
shows , Morning, Afternoon, All Day
Table B -TimeDaySessions
shows , M, A, D
I wish these vales to match, is there a way in the data load to do find and replace? I wish for both columns to say Morning, Afternoon, All Day
Please help
Use an if condition in your load
LOAD
IF(TimeDaySessions='M','Morning',IF(TimeDaySessions='A','Afternoon','All Day')) as TimeDaySessions
Use an if condition in your load
LOAD
IF(TimeDaySessions='M','Morning',IF(TimeDaySessions='A','Afternoon','All Day')) as TimeDaySessions
LOAD
pick(match(TimeDaySessions,'M','A','D'), 'Morning','Afternoon','All Day') as TimeDaySessions
Might load quicker.
As Ogster1974 Mentioned try
1:
load * inline [
TimeDaySessions
Morning
Afternoon
All Day
];
2:
NoConcatenate
load
pick(match(TimeDaySessions,'M','A','D'), 'Morning','Afternoon','All Day') as TimeDaySessions;
load * inline [
TimeDaySessions
M
A
D
];
Hiya
Thanks all
kind regards