Circumventing duplicate value in column issue

plaem

New Member
Joined
Jun 4, 2018
Messages
2
I have a large database in Access with document names and parts that the documents contain. The lay-out is something like:
  • doc 1, part 1
  • doc 1, part 2
  • doc 1, part 3
  • doc 2, part 4
  • doc 2, part 5
  • doc 3, part 6
  • etc
In Excel I have another table with the document name. My goal is to link the table and database, and extract all parts for a certain document name and append it to the Excel table. After that, I need to check if the parts belonging to document X may also be present in any other document Y.
I tried linking the table and database through Powerpivot, however I got an error that, indeed, the column with the document name contains duplicate values. The database is over 40,000 items so adapting the source is not something I'd like to do.
I though about concenating the part numbers for each unique document into one cell, however that would make the subsequent check to see if any part number is in any other document more complicated.

What would be a clever way to go about this task?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
You need to think differently than with Excel. You should
1. Load the entire table to power pivot (40k is tiny)
2. Load a distinct list of all documents (presumably from Excel)
3. Load a distinct list of all parts (presumably from Access)
4 join the tables.

You can then filter on any document to see all the parts (add part numbers to a pivot table, and count of parts to values. To see the other docs, take a look at my article here. https://exceleratorbi.com.au/show-all-invoices-containing-this-product/
 
Upvote 0
I'm a bit lost how to connect the relationships in PowerPivot.
I have a main block from the database with both (non-unique) document and part ID's, made two separate tables with the unique document and part ID's. Then I have my Excel table which contain the partnumbers which should act as input for finding the corresponding documents. I assume the latter can be done with your web article, however I do I properly link the datablocks?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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