Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
javvaji
Creator II
Creator II

How to group records and send first record of group to online file and same for rest

 Hi Folks,

 

I need to group the records coming in email column and send the first record of each group into one file and next second record of each group to another file and remaining records also same.

Ex : 

a@a.com

a@a.com

b@a.com

b@a.com

a@a.com

c@c.com

 

As per above example first file should have 

a@a.com

b@a.com

c@c.com

second file

a@a.com

b@a.com

third file

a@a.com

 

Can anyone help me on this. Thanks in advance.

 

 

 

Thanks,

Bharath.

Labels (2)
1 Solution

Accepted Solutions
javvaji
Creator II
Creator II
Author

Thanks for your reply. We got the solution for this.

Even though we got we will also try which you said.

 

Thanks,

Bharath

View solution in original post

11 Replies
vboppudi
Partner - Creator III
Partner - Creator III

Hi,

 

Please try below.

 

0683p000009LxTm.png0683p000009Lx0b.png0683p000009LxXx.png0683p000009LxWM.png0683p000009LxY7.png

Regards,

javvaji
Creator II
Creator II
Author

Thanks for your reply. We got the solution for this.

Even though we got we will also try which you said.

 

Thanks,

Bharath

Anonymous
Not applicable

@vboppudi

Hi I tried to use the below scenario and it seems the SEQ variable expression does not work. It produces and error.

Anonymous
Not applicable

@javvaji May I ask you to share your solution as i have a similar task to do.

vboppudi
Partner - Creator III
Partner - Creator III

Hi Shaf,

 

Please provide your requirement if sample input and expected output.

 

Regards,

Anonymous
Not applicable

@vboppudi Thank you for your quick response.

I currently have a Excel macro enables workbook which reads the data in file then groups the data based on certain criteria, say for example Name and timesheet data. It then creates an individual workbook for each of these groups and names the workbook based on the name and the timesheet value column. It sorts the data first then inserts new line after each group, then copies this data and paste into another workbook, save and closes the file (current workbook), now read the next set of data in the original file and copies and paste the next set of group data and puts in new book and so on utill it reaches end of file with no data and closes the application.

I have been asked to rewrite this job in Talend as the timesheet data we longer receive in excel. The timesheet data comes in a pipe text file. I have been able to create a excel file from the pipe text file.



To see the whole post, download it here
CaptureGrouping.PNG
CaptureIndividualTimesheetOutput.PNG
CaptureOutput.PNG
Capture.PNG
OriginalPost.pdf
vboppudi
Partner - Creator III
Partner - Creator III

Hi Shaf,

 

Please provide data in excel or CSV, i am not able to copy data.

 

Regards,

Anonymous
Not applicable

@vboppudi

Please see attached


invoice_input.xlsx
Anonymous
Not applicable

Hi Shaf,

 

     You are posting duplicate query in another topic under Talend forum. Please stick to your topic so that attention will not be diverted.

 

https://community.talend.com/t5/Design-and-Development/group-records-and-create-file-for-each-record...

 

Warm Regards,

 

Nikhil Thampi