Calculate DistinctCount

milos90

New Member
Joined
Mar 13, 2018
Messages
2
Hi -
I have an issue returning number of product names that appear more than once for one client. By itself this is an easy pull however I need to implement a third element - Client ID ( which appears for each client name reference - my issue)

Data elements: Client Name, ID, Product Name

What I need: Unique Product Name associated with each client name. So if there is a client name that has 2 or more product names - I want to see that. This is something that I was able to get as shown in the example
Example:

ClientN ProductN
21 LLC box
21 LLC ball


However the third component is creating issue for me because client ID shows up for each instance of client name and it is a different value. So once I plug in client ID ( naturally I will get more rows back which would neutralize my calculate(counta that worked just fine for the above example.
Example:
now because I m getting each Client ID my final results are not as accurate.
I would for example have 22 LLC show up twice just because it has 2 different client ID's but only 1 product name and my goal is to have their unique Cl ID
ClientN ProductN ID
22 LLC box M123
22 LLC box M124
In the first example this would not appear in my search criteria since client Name is associated with only 1 Product Name but here it shows up because of the addition of ID
So the number of columns is far greater that come back and including duplicates of product names

When I try doing calculate(distinctcount(product name),filter(client name)=earlier(client name) - it just runs the query but does not return anything. I have tried many other variations but no luck

Thank you - Milos
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Also wanted to add that data is given in this way and I cant change that:

Client Name Client ID Product Name

BB8 1111 spherical ball
BB8 1110 spherical ball
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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