Forum Discussion

CastyChichi's avatar
CastyChichi
Copper Contributor
Oct 10, 2019
Solved

PivotTable : Unexpected behavior with 2 tables

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

PivotTable with 2 tables

Relationship

  • 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.

2 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    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.

Resources