Excel - Power query: Show everything all customers, who bought X service, bought.

Doge Robert

New Member
Joined
Jan 10, 2017
Messages
14
Hello all.

I'm terribly sorry, if this question has been asked before, but I couldn't figure out the proper search keywords to get a result.

I have a dataset with close to a million rows by now... And growing.
In there, I have a column with customer ID. In another, I have a list of services bought.

To explain, what I'm trying to do, here is how I would do it with formulas:

Column 1 (Controlcount): If(@[Service]="X";1;0)
Column 2 (Check all): Sumifs([Controlcount];[CustomerID];@[CustomerID])

So basically, the first column types a 1, every time X service is listed in the Service-column
The second column totals the number of ones for each customer.

Then I can simply make a pivot and filter out every customer with a count less than 1.

But this isn't practically possible with a dataset as large as the one, I'm working with, so I'm looking for a way to get Power Query to do it for me, before the dataset is loaded.
(I can always change the service-filter inside Power Query, when I'm looking for a different service.)

One added criteria: I cannot do anything in Power Query, which will re-group filters in any way. I can only add new columns, not alter the existing ones or how they're outputted.

Is there any way to do this?


Regards

Rob
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
use XL2BB to post representative example of source data and expected result
 
Upvote 0
sure,
also you can post a link to the shared excel file with representative source data and expected result via onedrive, googledrive , dropbox or any similar service
 
Upvote 0

Forum statistics

Threads
1,223,790
Messages
6,174,600
Members
452,574
Latest member
hang_and_bang

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