How should data model be set up?

Editor7

New Member
Joined
Jan 5, 2013
Messages
3
I have three files:
- Sites
- NAICS
- Interests

All are tied together by the SiteID.

Sites functions as the lookup table based on the SiteID as there are no duplicate records.
Both NAICS and Interests have multiple records for a SiteID.

I need to create a report with information from both NAICS and Interests. I can get one or the other, but not both together in the same PowerPivot table. How should I set this up to be able to report on all fields in these tables in one PowerPivot table?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
If you create the relationships from each of 'NAICS' and 'Interests' to 'Sites' respectively then in a Pivot where you have used a 'dimension' from the 'Site' table then you can easily drag in information from both the other two tables.

If this doesn't help you may need to share a workbook.

Jacob
 
Upvote 0
Let me answer my own question. I can use measures from the two tables (NAICS and Interests) that are linked to the lookup table (Sites), but I can't use dimensions from the linked tables. To use a dimension from one of the linked tables, I need to turn it into a measure by using HASONEVALUE, for example.
 
Upvote 0
Thanks, Jacob. I was running into a problem when I was trying to use attributes from the linked tables. Only amounts/measures can be used from the linked tables in the tabular model. At least, that is what I found with my sample data.
 
Upvote 0
Attributes from "facts tables" can be used in row or column.

Do you mean, you encounter an issue with, say, attributes from your NAICS table not filtering attributes from your Interests tables?

In that case, you can either adapt your measures, or (best practise) create lookup tables for these attributes and define relationships accordingly.

EDIT:
A more precise (and accurate) answer would require more information on your attributes and what you want to achieve.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top