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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How replace some values from an exception table to main table?

Hi, i have a Main Table with some value and i have an Exceptions Table that holds some exception values. For example, this table tell us that when Field1 value was 1, the Field2 value is 11. I can't do this with just the if statement because i have a lot of exceptions like this in the Exceptions Table.

Does anyone have some ideia on how to replace these exceptions' values into the Main Table??

Thanks!

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Use exception table as Mapping Load Table and use ApplyMap function in main table

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Use exception table as Mapping Load Table and use ApplyMap function in main table

maxgro
MVP
MVP

MapExceptions:

Mapping load * inline [

From, To

1,11

2,22

];

TmpMain:

load * inline [

Field1

1

2

3

4

5

6

7

];

Main:

NoConcatenate

load

  ApplyMap('MapExceptions', Field1) as Field1

resident TmpMain;

DROP Table TmpMain;

Anonymous
Not applicable
Author

Thanks! It works!

Anonymous
Not applicable
Author

Thanks It Works!