How to group or calculate so that multiple items sum to 1 in a Pivot Table?

Rubikahn

New Member
Joined
Oct 22, 2018
Messages
5
Good morning,

I am working with a sales data table for which I have created the following corresponding Pivot Table fields:

1. customer (company name)
2. deal stage (Lead, Prospect, Qualification, Evaluation, On Hold, POC, Negotiations/Legal, Closed Won, Closed Lost)
3. deal name (internal name for a deal)

In the source data, there can be multiple deals - "deal names" - associated with a single customer/company. I need to accurately sum customers/companies, but those that have multiple deals associated with them are skewing the totals for customer/company (see below).

CustomersTotal by Stage
Customer ABC
Negotiations/Legal​
22
Dealname 1​
11
Dealname 2​
11
Grand total22

<tbody>
</tbody>

Customer ABC should count as 1 company with 2 deals. My current solution is overstating how many customers/companies there are. I am looking for a "reductionist" solution that will group or calculate the sum of this field as 1.

I have looked everywhere for a solution to this seemingly simple calculation problem, and I'm out of ideas, and hope someone can help!

Thanks!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Re: Weird reductionist problem: How to group or calculate so that multiple items sum to 1 in a Pivot Table?

show us the raw sales data table please - anonymise it if required............
 
Upvote 0
Re: Weird reductionist problem: How to group or calculate so that multiple items sum to 1 in a Pivot Table?

Deal StageDeal NameAssociated Company
LeadCompany A IntegrationCompany A
Closed LostCompany Z ImplementationCompany Z
On HoldCompany B Regional DealCompany B
LeadCompany A APICompany A
POCCompany C ImplementationCompany C

<colgroup><col width="100" style="width: 75pt;"><col width="271" style="width: 203pt;"><col width="180" style="width: 135pt;"></colgroup><tbody>
</tbody>

Here is some dummy data I created. I used the "Borders-Copy-Paste" option...new to the board, thanks for your patience!
 
Upvote 0
Re: Weird reductionist problem: How to group or calculate so that multiple items sum to 1 in a Pivot Table?

so do you want to see total of 4 representing companies A,B,C,Z ?
 
Upvote 0
Re: Weird reductionist problem: How to group or calculate so that multiple items sum to 1 in a Pivot Table?

Yes. Currently I see a total of 5 for Associated Company. Thank you for any help you can provide!
 
Upvote 0
Re: Weird reductionist problem: How to group or calculate so that multiple items sum to 1 in a Pivot Table?

Select your source range.
Use ALT+N+V, to invoke the modern Pivot Table wizard.
CLICK the "Add this data to the Data Model" option.

You will no have an additional count option for values, "DISTINCT COUNT"
If this does not provide a solution, you will need to use Power Pivot functions.
 
Upvote 0
Re: Weird reductionist problem: How to group or calculate so that multiple items sum to 1 in a Pivot Table?

Deal StageDeal NameAssociated Company
LeadCompany A IntegrationCompany A
Closed LostCompany Z ImplementationCompany Z
On HoldCompany B Regional DealCompany B
LeadCompany A APICompany A
POCCompany C ImplementationCompany C
Count of Deal StageDeal Stage
Associated CompanyClosed LostLeadOn HoldPOCGrand Total
Company A 2 2
Company B 11
Company C 11
Company Z11
Grand Total12115
a pivot gives you the 4 companies and the 5 deal stages
if you need to get the 4 calculated automatically, try
4
=SUM(K1:K100)/2-COUNTIF(K1:K100,">1")+1

<colgroup><col><col><col><col span="2"><col><col span="4"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Re: Weird reductionist problem: How to group or calculate so that multiple items sum to 1 in a Pivot Table?

Thanks for the tip - however that shortcut doesn't work on my MacBook :)
 
Upvote 0
Re: Weird reductionist problem: How to group or calculate so that multiple items sum to 1 in a Pivot Table?

That worked perfectly! Thank you so much for your time and assistance!
 
Upvote 0

Forum statistics

Threads
1,215,884
Messages
6,127,567
Members
449,385
Latest member
KMGLarson

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