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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Kushal_Chawda

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
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
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 <> ;