Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
dunnalahk123
Creator III
Creator III

Concatenate two objects

Hi,

can some one help me here for below scenario

i have two objects  which i am concatenating

HOLD:

LOAD [Project ID],
     [HOLD Closure date],
     //[HOLD Closure date2],
//     Field_Text,
//     Old_Value_Text,
//     New_Value_Text,
     [PSA Project pse Project ID]
   
FROM
[$(QVD_Path)\GSD_HOLDClosuredate.qvd]
(qvd)

;

Concatenate


LOAD [Project ID],
     //[HOLD Closure date],
     [HOLD Closure date2],
//     Field_Text,
//     Old_Value_Text,
//     New_Value_Text,
     [PSA Project pse Project ID]
      
FROM
[$(QVD_Path)\GSD_HOLDClosuredate2.qvd]
(qvd);

Test.PNG

From above you can see i am getting output in 4 lines but i need it in 2 lines.

can some one suggest me here.

Best Regards,

Hari

12 Replies
dunnalahk123
Creator III
Creator III
Author

Hi,

map1:

mapping LOAD
[PSA Project pse Project ID],
     [HOLD Closure date2]    
FROM
[$(QVD_Path)\GSD_HOLDClosuredate2.qvd]
(qvd);


HOLD:

LOAD

[PSA Project pse Project ID],
     [HOLD Closure date],
    applymap('map1', [PSA Project pse Project ID],'unknown') as T
FROM
[$(QVD_Path)\GSD_HOLDClosuredate.qvd]
(qvd);

Joinnew.PNG

But Second field "T" is coming same date for both 2 rows. which it should not be as per below snashot

Test.PNG

dunnalahk123
Creator III
Creator III
Author

Hi,

As per Apply map function properties in serves data in first come first serve order.

But what to do if there are different value for same id

And how to get the second referring value for the same.

neelamsaroha157
Specialist II
Specialist II

The thing is that system doesn't know which Closure date corresponds to Closure date2 and its creating four rows.

If you have a logic to say that 9/20 should be placed against 9/29 or 8/16 then it may work.