I have data arranged by an individual loan. The loan can have up to 3 borrowers. Each borrower is uniquely identified, but on a one per row basis.
I would like to combine all of these and leave the rest of the row [null] depending on whether or not these borrowers exist.
The ideal output would be: Loan ID, Borrower 1, Borrower 2, Borrower 3 . . .and there would only be one record per individual Loan (in this case, 3).
Solved! Go to Solution.
you will want to use the summarize tool.
GroupBy LoanID
sum on primary
sum on secondary
sum on third
How would this work if the BorrowerIDs weren't integers? If they were alphanumeric instead? Is there a more general approach to solving this other than relying on SUM?
Hi @price_is_right ,
If the borrowers are text, you can use the concatenate method in the Summarize tool. Don't use any characters to separate.
Please let me know if that works for you.
Cheers!
Esther
@estherb47 definitely has the simplest solution, but for a more dynamic route (in the however unlikely event that an additional borrower is added), you can transpose and then cross tab your data, grouping on the loanID in both situations. This would account for any future expansion in the number of available borrowers.
Thank you!