Forum Discussion

saver7890's avatar
saver7890
Frequent Visitor
3 years ago

Distinct Row Count

Hi,

 

Newbie here. I have encountered difficulties in figuring out how to calculate distinct rows from two columns. 

I have two tables(see figure):

  1. 'Ward_Bed' and its respective admission and discharge date;
  2. The number of 'Admitted' (N= 385) and 'Discharge' (N = 355) within the distinct list of 'DATE' (N = 394).

I use the "manage relationships" function by "DOA" of the two tables and my final matrix as follows.

My intention is to compute the distinct countrow of the distinct count of DOA and DOD. 

Although the distinct count of totals are correct, the column value within the matrix are identical between DATE and DOA. 

I expect the Pediatric Ward to have 50 count under DATE instead of 34 after remove duplication of the appending DOA and DOD by excel. 

 

Thank you in advance for your help.

 

 

 

3 Replies