PowerPivot Linked Table and Key Values


New Member
Jul 19, 2011
Hi- new to the forum. I have a table in Excel that is dynamic-changes based on parameters. We'll call this table "ExcelDynamicTable." I have linked this table to a table in Powerpivot. We will call this "PPTable." Column A in PPTable has my primary key and I want to use it to create relationships with other tables.

When I update my ExcelDynamicTable sometimes it returns more rows- sometimes smaller rows (hence it is Dynamic). When it returns smaller rows, the PPTable refreshes and holds over the blank values-- so when I try to create relationships is says it does not have unique values! (It is counting the blank cells as non-unique fields). I've tried naming my ExcelDynamicTable a dynamic named range- that doesn't work as PowerPivot only uses the first reference of the first instance of named range.

Has anyone else experienced any similar problems? Any thoughts or help would be very much appreciated.


MrExcel MVP, Moderator
May 2, 2008
Office Version
365, 2019, 2016, 2010
Windows, MacOS
I assume your table is still actually defined as a Table? Does it get data from somewhere else, or is it manually entered? If the former, do the additional blank rows still appear as part of the table in Excel? (and is there a reason for not connecting directly to the source in PP?)


New Member
Jul 19, 2011
Thanks for getting back to me. I have resolved the issue by creating another table that uses the dynamic table as a data source. In answer to your questions though- yes it is defined as a table and it gets it's source from a separate table which is a connected to a sql server database. The reason I am not directly connected to the sql table is because I have to perform calculations on the connected table. (I have to project dates which are beyond the current date.) In other words the table is simply a prepping stage for the data. Thanks again for your reply. It is good to know help is out there!

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...