Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can i use Apply map function if tables having more than two columns

Hi,

Can any one suggest Apply map function can be used if two tables having more than two columns.

9 Replies
ashfaq_haseeb
Champion III
Champion III

Yes,

You have to use two (multiple) mapping loads

At a time it just support one ID and one mapping

regards

ashfaq

tresesco
MVP
MVP

Or, you can simply Join them.

vinay_hg
Creator III
Creator III

yes u should use nested mapping. in applymap inside one more applymap or by usinf if condn

amit_saini
Master III
Master III

Sandhya,

Yes very much possible, as suggested by Ashfaq you need to go with two mapping loads.

Attached is example.

Thanks,

AS

Colin-Albert

Mapping tables and applymap only support two column tables. If you have three columns to map you can use two mapping tables. Although this sounds like more work it is easy to add and performs well during reloads.

alkesh_sharma
Creator III
Creator III

Yes but you need to write separate Mapping load for each and every column.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Can you come up with some sample data and your expected output so that it would be easier to understand your requirement.

If you looking for a lookup with more than two columns in a table then use Lookup() in script.  refer below link

Lookup function


If you want to double mapping then use nested applymap() like below


LOAD

*,

ApplyMap('Table2', ApplyMap('Table1', Value1)) AS MappedValue

FROM DataSource;



Hope this helps you.


Regards,

Jagan.

Not applicable
Author

Can u give any Example Application.

marksmunich
Creator III
Creator III

Better post a sample application with your sample data. we can help you out with applymap. Just descibe what exactly you Need.