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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Ameyy
Contributor
Contributor

tMap - To return a value(Lookup and return a value from lookup table)

I have an insert and update output table which works fine. (scd type-1). I want to know how have another input table and return a value to my output.

Example - I have a user table which has "Full Name". I want this value to be loaded after matching the keys from my main input with this lookup.

Note: My Insert has Rejected inner join true and Update has expressions to load any changes.

Thanks

Labels (3)
5 Replies
Anonymous
Not applicable

Hi @AVINASH MEYYAPPAN​,

 

Would it be possible for you to take a screenshot of what you already have then give another explanation as to what you would like to do? I don't quite understand what it is you are asking and I think a screenshot of what you have and your explanation reworded might help

 

Regards

 

Richard

Ameyy
Contributor
Contributor
Author

Attachment done..

 

  1. From Input I have a look up on target where I load my new and Updated records as two separate outputs on tmap.
  2. I want to have a look up on another table which has an attribute value. I want to have a join between this lookup and my main input and return my attribute value.

Example:

 

Main table has auserid

Lookup table userid,username

I want to return username to my target.

Hope this is clear.

gjeremy1617088143

Hi @AVINASH MEYYAPPAN​ , if both userid are from the same type (Integer i hope in your case) , in the TMap input you can drag and drop the value of user id of the main row to the lookup input userid value, it will create a join on those value, then on the lookup you can select inner join and unique match.So if your goal is to insert where you can't find the key : on the ouput insert table properties you can set catch inner join reject to true.

And if you find the key you will update , just make an output for this in the tmap with catch inner join reject to false.

Send me Love and Kudos

Ameyy
Contributor
Contributor
Author

the problem is i already have an output with inner join rejects for my new inserts. This lookup table which has the name has data that matches to my new input. I cannot drag and drop there it would not insert. If I have a new output its complaining about unique constraint violation. Update action did not work either.

gjeremy1617088143

HI,i think i understand what you want, on the insert output , send all the data in common for insert and the new output you want ,then youn can use tReplicate component wich will split your output into several other and you make one main for insert, one other main for your table which has "Full Name".

Send me Love and Kudos