I have two tables in my data model. You can call them Customer and Order and they are related by a key CustomerID, so the model could look like this: Customer: CustomerID CustomerName
Order: OrderID CustomerID OrderTotal
There is a relationship created based on CustomerID. Scenario: I create a PivotTable displaying CustomerName from the Customer table in Rows. Then use OrderTotal as an SUM aggregate in Values. The aggregation works fine until you have duplicate values in CustomerName. For example, customer1 is CustomerID 1, CustomerName John Smith. Second customer is CustomerID 2, CustomerName John Smith. The result is only one John Smith is listed in the PivotTable and all of the OrderTotal values are aggregated for all John Smith's. I don't understand this behavior. Can someone explain this and ultimately a way around it? I would expect to see two John Smith rows with an aggregation matching the relationship key (CustomerID), not CustomerName.