Excel Datamodel refers to orignal file data when saving as new file.


New Member
Jan 29, 2018
My workbook contains 2 different tables of data (table1 andtable2) both data tables have a column named “Product” and from each data tableI have created a pivot table (pivottable1 and pivottable2)
In order for me to be able to use one single slicer toselect/filter the same value in both pivot tables I had to create arelationship between my tables. Since both of my tables have duplicate valuesin the “product” column I had to create a third table (table3) withoutduplicates and create connections between table1 and table3 + table2 andtable3. From table3 I created a pivot table including the in the data model andinserted a slicer for product. (The data model is also included in pivot tables1+2 otherwise the slicer will not work)
This works really great. The slicer can control all 3 pivottables.
My issue occurs when I update my data (which I do weekly)and save to a new file with a different name, the connections in data refer tothe original file where the relationships were created.
If I disconnect these connections the pivot tables lose allcontent and there is no way to change the data source.
Does anyone know if it is possible to create relationshipsbetween tables without also creating a data connection that remains when theworkbook is saved as a new file?

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...