
This will create the Pivot table, and we can see that both the source tables are available in the source section.In the Pivot table’s Create Pivot Table dialogue box, we will select the source as “Use this workbook’s Data Model”.

To do that, we will go to the Insert tab and then click on the Pivot Table option. Now we will have to create a pivot table.The diagram above shows a one-to-many relationship between the unique lookup table values and the data table with duplicated values.Then we will see the diagrammatic representation, showing the two tables and the relationship between them, i.e. We can also get the diagrammatic representation of the data model by changing the view.Now to see what Excel has been up to, we can click on Manage Data Models in Data -> Data Tools.After defining the Data model, Excel would be treating these objects as Data Model tables instead of a worksheet table. This is light on the memory requirements and much faster than using VLOOKUP in large workbooks. It integrates the data and creates a data model based on the common column. Once we set this up, Excel would create a relationship between the two behind the scene.We are simply setting up the field to lookup values from the lookup table in the data table. On the other hand, the Related Column (primary) refers to the column in the lookup table where we have unique values. Coming to the columns, the Column (foreign) is the one that refers to the data table where there can be duplicate values. This is what we have used to establish the relationship between the two tables.
#Linking tables in ninox code#
So, the common column between the two tables is the Shelf Code column.The primary table is the one that is analyzed based on the lookup table, which contains lookup data that will make the reported data, in the end, more meaningful.

On the other hand, the Related table is the table that has the lookup data – it is our lookup table ShelfCodesTable.


