Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
joeybird
Creator III
Creator III

match values from same columns but different tables


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

1 Solution

Accepted Solutions
Anonymous
Not applicable

Use an if condition in your load

LOAD

IF(TimeDaySessions='M','Morning',IF(TimeDaySessions='A','Afternoon','All Day')) as TimeDaySessions

View solution in original post

4 Replies
Anonymous
Not applicable

Use an if condition in your load

LOAD

IF(TimeDaySessions='M','Morning',IF(TimeDaySessions='A','Afternoon','All Day')) as TimeDaySessions

ogster1974
Partner - Master II
Partner - Master II

LOAD

pick(match(TimeDaySessions,'M','A','D'), 'Morning','Afternoon','All Day') as TimeDaySessions

Might load quicker.

krishna_2644
Specialist III
Specialist III

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

];

joeybird
Creator III
Creator III
Author

Hiya

Thanks all

kind regards