Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Help. My Data model is producing a cartesian product in excel and I cant fix it.

I have an issue with a data model I created in PowerBI. When it is imported into excel the relationships between tables seem to go out the window but measures based on them work.

Essentially in a case with the following tables Table 1 (Key: A,B) Table 2 (Key: A,B)
when a user selects from more than one table in excel pivot table they are getting the following result set (A,A),(A,B),(B,B),(B,A). Where I was only expecting them to receive (A,A),(B,B).

The dataset preforms as expected in PowerBI desktop. Is there a setting I'm missing or something else.

2 Replies

  • jbwtp's avatar
    jbwtp
    Icon for Memorable Member rankMemorable Member

    Hi Anonymous,

     

    This is weird, but this may be the way that the relationships work in Excel. Are you setting them up via Power Pivot funcionality (drag and drop) or using Relationships.. dialog (selecting pairs from the box)?

     

    Are you considering having a key: AB on both tables (i.e. one "index" column vs two columns)?

     

    Kind regrads,

    John