Forum Discussion

Flipper's avatar
Flipper
Frequent Visitor
4 years ago

Using Excel Connector with PBI Datamodel

Hi Guys

 

I'm working with a client who basically wants to create a set of data that can be consumed through Excel, so I've recommened that they can use PBI to build out a datamodel and then use the excel connector to then consume it in Excel.

 

I've built the model for them, for the sake of argument, assume its two connected tables with a One to Many relationship.

 

If I build a report from this in PBI, it works as I would expect - i.e. I can bring together data from the two tables and the data is correctly related to one another.

 

However, when I use Excel and connect to datamodel I have published, if I try to pull the data from both tables, it acts as of there is  a full outer join going on - i.e. every record for the main table appears against every record of the other table.

 

I've checked this against other datamodels that I have built previously and interestingly I see the same behaviour - which makes me think this is just the way the excel connector works (I don't have much experience with the connector though). However, it feels wrong. Does anyone have a bit of experience using the excel connector and tell me if there are any tricks to using it in a better way?

 

Incidently, I know I can work round this problem by builing bespoke measures to effectively force the relationships, however the client would like to have a measure of control over what is displayed, so ideally I'd be able to make the PowerPivot in Excel work in a similar way to something like the matrix visualisation in PBI.

 

Thanks

 

Nick

5 Replies

  • Flipper ,Based on what I got.

    In case table on the one side have less values say have 5 category and fact(many side table) has 6.

    You will get one blank row with all measures created from fact when they are used with category.

     

    By default is it right join. +0 can force left also.

     

    In case you want to remove the blank of one side when value is missing ;you need to use a visual or page level filter for that

     

    • Flipper's avatar
      Flipper
      Frequent Visitor

      Hi amitchandak 

       

      Thanks for replying. So probably helps to have an example. I've got two tables, lets call them Parent and Child.

       

      Parent has:

       

      ParentID
      Parent1
      Parent2

       

      Child has

       

      ChildIDParentIDfk
      Child1Parent1
      Child2Parent1
      Child3Parent2

       

      If I bring them together, I'd expect to see:

       

      ParentIDChildIDParentIDfk
      Parent1Child1Parent1
      Parent1Child2Parent1
      Parent2Child3Parent2

       

      However, what I believe I am seeing is (In excel - NOT in PBI, works as above in PBI):

       

      ParentIDChildIDParentIDfk
      Parent1Child1Parent1
      Parent1Child2Parent1
      Parent1Child3Parent2
      Parent2Child1Parent1
      Parent2Child2Parent1
      Parent2Child3Parent2

       

      The above feels wrong, but here is the evidence....

       

      Weird eh?