Some users may have attribute elements that contain attributes with elements that have a many to many relationship, however they want to do calculate a distinct count. The following steps below will outline an example in Strategy Tutorial of how to achieve this.
- In the Strategy Tutorial Warehouse, create a new table as follows:
- Add the table to the Project and create attributes Patient and Ops with a many to many relationship.
- Create a metric CountPatient and set the count parameters to Distinct = True.
- Create a report with the attributes Patient, and Ops and metric CountPatient in it.
- On the grid from Data Subtotals set the subtotal to Count.
- When the report is executed the Subtotal is shown incorrectly as 5 for patient count as shown below: