I'm trying to learn PowerPivot and have created two tabs In my PowerPivot window: Patient and Procedure.
The fields in the patient window are: PatientID, PatientFirstName and ProcedureID.
The fields in the Procedure table are: ProcedureID, ProcedureName and Cost.
Each patient can have many procedures and therefore there can be duplicates in the patients table (and therefore the ProcedureID can appear multiple times in the patients table), but the Procedure table has only one row for each procedure (there are four) and so the ProcedureID in the Procedure table is unique.
I have created a relationship between the two tables on ProcedureID with Patient as the Table and Procedure as the lookup table. I have also checked that the relationship exists and is active via Manage Relationships.
When I build the Pivot table, and include PatientFirstName (from the Patient table) and ProcedureName (from the Procedure table) in the Row lables, it appears as if every Patient has had all four Procedures although only one patient actually has had all four procedures.
Please can anybody tell me what I'm doing wrong?
Thank you.
The fields in the patient window are: PatientID, PatientFirstName and ProcedureID.
The fields in the Procedure table are: ProcedureID, ProcedureName and Cost.
Each patient can have many procedures and therefore there can be duplicates in the patients table (and therefore the ProcedureID can appear multiple times in the patients table), but the Procedure table has only one row for each procedure (there are four) and so the ProcedureID in the Procedure table is unique.
I have created a relationship between the two tables on ProcedureID with Patient as the Table and Procedure as the lookup table. I have also checked that the relationship exists and is active via Manage Relationships.
When I build the Pivot table, and include PatientFirstName (from the Patient table) and ProcedureName (from the Procedure table) in the Row lables, it appears as if every Patient has had all four Procedures although only one patient actually has had all four procedures.
Please can anybody tell me what I'm doing wrong?
Thank you.