Dec 05 2023 07:17 AM
I have a data set that has a listing of multiple invoices with the invoice number repeated because the data also had the product that was sold. I need to generate a report, for each month of the year, that shows how many orders a customer has each month.
Dec 05 2023 08:19 AM
Dec 05 2023 08:22 AM
Unless I'm mistaken, it would appear that you're displaying the desired report, not the dataset from which it is to be generated.
Unless the data is highly confidential--and if it is, perhaps you could create a copy without the actual names of products or customers--it would help us help you if you could post not just an image, but the actual workbook. Put it on OneDrive or GoogleDrive with a link here that grants access to it.
Dec 05 2023 09:01 AM
Here is a sample file.
Thanks for your help!
Dec 05 2023 09:02 AM
Dec 05 2023 10:02 AM - edited Dec 05 2023 10:02 AM
I receive an "Unauthorized Error 401" when clicking that link.
Dec 05 2023 10:05 AM
Dec 05 2023 10:33 AM
Thank you. I've attached a pivot solution.
Dec 30 2023 06:36 AM
Thank you for your attempt. This is not what I was looking for.
For instance. Customer D for January, the pivot table shows 7. The answer really is 2. There were only two orders in January. On the 2 orders, there were 7 items.
Any other thoughts?
Dec 30 2023 06:54 AM
Dec 30 2023 06:55 AM
In the attached version of the workbook, I added the data source to the data model, then used Distinct Count as summary function for the Document No. field.
Does that do what you want?
Dec 30 2023 07:01 AM
Dec 30 2023 07:04 AM
Dec 30 2023 08:23 AM
Do you mind sharing your PQ solution? I'm curious why you believe it's the way to go.
I agree with @Lorenzo - table the source and add to data model. Base the pivot off the data model and use distinct count.
Dec 30 2023 09:42 AM
Dec 30 2023 10:27 AM - edited Dec 30 2023 10:28 AM
Fair enough. Just be aware that PowerPivot is designed to deal efficiently with large amount of data
Dec 31 2023 08:19 AM
Jan 02 2024 11:09 PM
Everything is relative 🙂 One could consider 20 Mb as a large file, someone else as a regular file
My point was only to say that even if you have a large amount of data, Power Pivot could be an option