Many to many relationship in power pivot

sharshra

Active Member
Joined
Mar 20, 2013
Messages
279
Office Version
  1. 365
I want to create a relationship in power pivot between 2 tables having many to many relationship. In the tables shown below, I wanted to link account fields between 2 tables. I get an error shown below when I try to do that. Is there a way to do this?

I understand why this error is coming, but this is a possible scenario. In such cases, how can we use power pivot?
1639739198572.png


Sales table -
DateOrder#Account
01-Nov-211234598765432
01-Nov-211234687654321
01-Nov-211234787654321
01-Nov-211234876543210
01-Nov-211234998765432
01-Nov-211235065432109
01-Nov-211235176543210
01-Nov-211235265432109
01-Nov-211235376543210
01-Nov-211235487654321
02-Nov-211235565432109
02-Nov-211235654321098
02-Nov-211235754321098
02-Nov-211235876543210
02-Nov-211235998765432
03-Nov-211236065432109
03-Nov-211236187654321
03-Nov-211236254321098
03-Nov-211236354321098
03-Nov-211236465432109
03-Nov-211236565432109
03-Nov-211236665432109
04-Nov-211236776543210
04-Nov-211236843210987
04-Nov-211236987654321
04-Nov-211237043210987
04-Nov-211237143210987
04-Nov-211237276543210
04-Nov-211237343210987
05-Nov-211237498765432
05-Nov-211237543210987
05-Nov-211237643210987
05-Nov-211237776543210
05-Nov-211237887654321
05-Nov-211237987654321
05-Nov-211238065432109
05-Nov-211238176543210
05-Nov-211238298765432


User & accounts table -
useraccountcompany nameactioned
user-165432109abcp-1
user-154321098abcp-1
user-143210987abcp-1
user-298765432def
user-287654321def
user-376543210xyzp-3
user-354321098xyzp-3
user-343210987xyzp-3
user-487654321mnop-4
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Create a bridging table that is a unique list of account numbers.
 
Upvote 0
I'm already using the combination of pivot table & table to get the required result. Refer the screenshot below. It may not have unique account numbers & that is the requirement. I thought it would be more efficient if similar result can be obtained with pivot table / power pivot, without having to use combination of pivot table & table.
1640086344799.png
 
Upvote 0
You can create the table in the data model - eg using Power Query.
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top