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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Kushal_Chawda
MVP
MVP

Help on creating Logic

Hi,

I have one table having name & grades

NameGrade
A+A121
B+B120
C+AB131

In another table I am having Actual Grade as

ActualGrade

+A

+B

+AB

I dont have Any relation between these two tables..

I nee the output

NameActualGrade
A+A
B+B
C+AB
Labels (1)
4 Replies
tresB
Champion III
Champion III

Try like:

Load Name,

          PurgeChar(Grade, '0123456789') as NewGrade Inline [

NameGrade
A+A121
B+B120
C+AB131

];

christian77
Partner - Specialist
Partner - Specialist

If there is not a relation between tables, you meant any, how could it be a logic? If the relation is by the grade, then do what treseco sais.

Kushal_Chawda
MVP
MVP
Author

hi tresesco,

thanks for the rpl.. but in my actuall scenario.. there are all numbers.. for eg.  +11121000.. where +1 is country code for USA.. so I need to assign USA to +111121000

tresB
Champion III
Champion III

Hi,

Though requirement is not vey clear to me, guessing, you have to use mapping like:

map1:

mapping load * inline [

Grade, Country

+111121000, USA

+111121001, UK

+111121002, AUS

] ;

Table1:

Load

               ApplyMap ('map1', Grade ) as Country,

               Name,

               OtherField
From <> ;