Tried to do this in Access and it didn't work out. Maybe Excel can?

kmprice710

Board Regular
Joined
Jan 8, 2014
Messages
87
Office Version
  1. 2019
Platform
  1. Windows
I have five tables: car sales, motorcycle sales, jet ski sales, trailer sales, and boat sales.
Each table has different columns but they have some column elements: customer ID #, company name, customer ID #, customer name, year.
Each row has the entire year's purchases by a customer but not every customer has a purchase row on each table.

I'd like to have 1 table that has 1 row per customer per year with all of their purchases, regardless of car, boat, jet ski, trailer and motorcycle.

How can I make that table? If the same customers were on each sheet and each of them had 1 row in each sheet, it would be a simple sort. But it won't work with this.

Any ideas?
 

Attachments

  • Capture.JPG
    Capture.JPG
    207.3 KB · Views: 8
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
with single click
query.gif

When I single click on them I see the same three things under applied steps and they are not what are in the image provided unfortunately. How many steps did what you do involve and how long did it take?
 

Attachments

  • Capture.JPG
    Capture.JPG
    212.6 KB · Views: 7
Upvote 0
as many steps as there are in each query, time depends on your skills and the quality of the file

maybe try double click

Double clicking just allows you to change the name of the Query.

I still have to transform the other 100,000+ rows and although you know how to do it, I have no idea how to do it and really am no closer to figuring it out. :-(

When I open those CSV files in Power Query, I can combine them by appending the four files to cars or boats, let's say, and it will get all of the data on one sheet, but I will have multiple rows for the same customer for the same year, which is not what I need. How did you accomplish it?
 
Upvote 0
did you use From Folder feature?

Data>Get Data>From File>From Folder?
It asks me for a folder path. I saved the XLS file that you uploaded in the same directory as the CSV dummy data.
Here's what I get when I select the folder:
 

Attachments

  • Capture.JPG
    Capture.JPG
    240.9 KB · Views: 6
Upvote 0
each file load to the power query editor separately then clean them as the steps show
with From Folder feature will be hard to clean all tables at once
result file cannot be in the same folder with *.csv because after refresh result table will read result as additional source

edit
all source files have the same steps so you will not see differences but only with Append1 (result query)
 
Last edited:
Upvote 0
each file load to the power query editor separately then clean them as the steps show
with From Folder feature will be hard to clean all tables at once
result file cannot be in the same folder with *.csv because after refresh result table will read result as additional source

Okay, so you're saying to:
1- put the 5 csv in a folder together
2- load the power query editor
3- click New Source>File>Text/CSV and load each of the CSV one by one

Can you explain "clean them as the steps show"? When I load them, I'm just clicking ok and taking the suggested changes. Did you do something differently?
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,768
Members
452,940
Latest member
rootytrip

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