Pivot Tables Counts Blank Cells when calculating Distinct Values

FahadSid

New Member
Joined
Mar 30, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I am trying to create a pivot table which should show the distinct values for Data elements in Column 1, these Data Elements are connected with Objects 1,2,3 with the names given in the table below.
Data EObject 1Object 2Object 3
Account IDACC_IDDQ_R1DQ_C1
Account CodeDQ_R1
InstrumentINS_IDDQ_R1DQ_C1
Element XDQ_R1DQ_C1
Element XELE_YDQ_R2
No elementNO_ELEDQ_R2DQ_C2
Yes ElementACC_IDDQ_R1DQ_C1
Yes ElementACC_ID2DQ_R2DQ_C2

I was able to create a pivot table which shows distinct values - but the problem is it count Blank cells as '1'. which is incorrect. Please see the pivot table below.
See How ElementX shows its connect with Object 1 twice but in actuality its connected only once.

1680202867729.png
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Can this be resolved by creating a Calculated field? Calculated fields only works with Sum function.

I used this formula '=counta(unique('Data E' )) but it returns 1 as the answer for all the fields. Please let me know if you can help.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,138
Members
453,021
Latest member
Justyna P

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