Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
khajafareed
Contributor III
Contributor III

Applymap- wants to fetch more than 1 possible value

i have below tables:

Table 1:

NumberPriorityCategoryCallerCaller User ID
INC00229773 - ModerateProduct FunctionalityMoogsoft Integration Usermoogint
INC00229763 - ModerateAccessJamar HendersonJamar.X.Henderson
INC00229753 - ModerateProduct FunctionalityMoogsoft Integration Usermoogint
INC00229743 - ModerateProduct FunctionalityMoogsoft Integration Usermoogint

 

Table 2:

TaskTargetStageHas breached
INC0010595ResponseCompletedTRUE
INC0021419ResponseCompletedTRUE
INC0015848ResolutionCompletedTRUE
INC0012613ResponseCompletedTRUE

 

When I try to use applymap, I am only able to fetch the first possible value it finds (I understand this is how applymap works).

But I would like to fetch all the data i.e all the corresponding values for a particular Number.

For Number i need the values "Resolution" and "Response" from Table 2.

How can I do this?

1 Solution

Accepted Solutions
Kushal_Chawda

@khajafareed  Why don't you just join them like below? Assuming Number from Table1 and Task from Table 2 are common

Table1:
LOAD Number,
Priority,
Category,
Caller,
[Caller User ID]
FROM
[https://community.qlik.com/t5/QlikView-App-Development/Applymap-wants-to-fetch-more-than-1-possible-...]
(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @1);

Left join(Table1)
Table2:
LOAD Task as Number,
Target,
Stage,
[Has breached]
FROM
[https://community.qlik.com/t5/QlikView-App-Development/Applymap-wants-to-fetch-more-than-1-possible-...]
(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @2);

 

 

View solution in original post

6 Replies
Taoufiq_Zarra

@khajafareed  can you share also the expected output

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
khajafareed
Contributor III
Contributor III
Author

INC0010012ResponseCompletedTRUE
INC0010012ResolutionCompletedFALSE
INC0010014ResolutionCompletedFALSE
INC0010014ResponseCompletedFALSE
Taoufiq_Zarra

@khajafareed  can you elaborate ?

Table 2 is the input table or the output table (result) ?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
khajafareed
Contributor III
Contributor III
Author

Table 2 is input table, While i am looking for Column(Number from table 1) it should populate both values (Response and resolution) from Table 2 Column(Target)

Kushal_Chawda

@khajafareed  Why don't you just join them like below? Assuming Number from Table1 and Task from Table 2 are common

Table1:
LOAD Number,
Priority,
Category,
Caller,
[Caller User ID]
FROM
[https://community.qlik.com/t5/QlikView-App-Development/Applymap-wants-to-fetch-more-than-1-possible-...]
(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @1);

Left join(Table1)
Table2:
LOAD Task as Number,
Target,
Stage,
[Has breached]
FROM
[https://community.qlik.com/t5/QlikView-App-Development/Applymap-wants-to-fetch-more-than-1-possible-...]
(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @2);

 

 

khajafareed
Contributor III
Contributor III
Author

Sorry for responding late.

I already tried Joining both tables, my issue is to fetch the latest Response/Resolution Breached status from Table 2.

As one incident will have more than one possible Response/Resolution values, from this i need to fetch the latest record not the first record.