2 SharePoint Lists Data Merge - One to Many Relationship – Flat Datasheet View

Copper Contributor

Hi All,
I need some help. I have 2 SharePoint Lists (List 1. Accounts and List 2. Requests - both lists have Account Number column in common) and want to display the data merge in a flat data view.
Note:
List 1: Accounts has single Account number (no repetitive account number)
List 2: Requests has multi–Account Numbers separated by commas and records can be repeated with the same account Numbers
I’ve tried PowerBI and it didn’t display in a flat data view as we wanted to.

Are there custom codes that can achieve this? Any creative ways to display the repetitive data is fine. I have SharePoint 2016 and want it to work for SharePoint Online as well for when we migrate.
Here is a sample of the Accounts Overview report.

List 1: Accounts

IDAccount NumberAccount Name
1111A
2222B
3333C
4444D

 

List 2: Requests

IDAccount NumberRequest StatusRequest Comment
1111,222,444In ProgressTest 1
2222,444PendingTest 2
3333,111ClosedTest 3
4444PendingTest 4

 

Accounts Overview Flat Data View Sample:

IDAccount NumberAccount NameRequest Status 1Request Status 2Request Status 3Request Comment 1Request Comment 2Request Comment 3
1111AIn ProgressClosed Test 1Test 3 
2222BIn ProgressPending Test 1Test 2 
3333CClosed  Test 3  
4444DIn ProgressPendingPendingTest 1Test 2Test 4


Thank you for your help!

0 Replies