SOLVED

PivotTable : Unexpected behavior with 2 tables

Copper Contributor

Hi,
The first picture shows the expected behavior of adding 'Product' and 'Revenue' to a pivot table. Now when i add the same fields but from 2 different tables linked with a relationship, the result is different (please see 2nd picture).
Could somebody explain this weird behavior ? Thanks in advance

 

PivotTable with 1 table

image.png

PivotTable with 2 tables

image.png

Relationship

image.png

2 Replies
best response confirmed by CastyChichi (Copper Contributor)
Solution

@CastyChichi 

Excel forces relationships only when it evaluates the measure. Other words, if you add into the Values for example Count of Products, result will be as expected, i.e. Revenues related to Products only. Before that it shows Cross Join result for two tables - for each row of one table all rows from another table.

In general, Pivot Table is aggregation tool.

@Sergei Baklan Thank you very much!

1 best response

Accepted Solutions
best response confirmed by CastyChichi (Copper Contributor)
Solution

@CastyChichi 

Excel forces relationships only when it evaluates the measure. Other words, if you add into the Values for example Count of Products, result will be as expected, i.e. Revenues related to Products only. Before that it shows Cross Join result for two tables - for each row of one table all rows from another table.

In general, Pivot Table is aggregation tool.

View solution in original post