Forum Discussion
Multiple fact tables into one dimension
You should be able to create a dimension table which will filter both fact tables with something like
Dim_Addresses =
DISTINCT (
UNION ( DISTINCT ( 'Fact1'[Address] ), DISTINCT ( 'Fact2'[Address] ) )
)
Create one-to-many relationships from the dimension to both fact tables and everything should work.
hey, I didnt explain the issue properly. Its not a relationship issue more like a multiple dimension issue.
- johnt751 year ago
Super User
Dimensions can filter multiple fact tables, that's one of the benefits of using them. If the filters aren't working as expected then the problem is likely in the relationships. Dimensions should filter fact tables, not the other way around, and there should be no links between fact tables.
- Anonymous1 year agoNot applicable
so, i am trying to filter dimension tables with other dimension tables and this is causing the problem.
- johnt751 year ago
Super User
Lets say you've got the situation
DimA -> DimB -> FactA
so that you put a filter on DimA and want it to reach FactA. All the values you filter for in DimA must appear in DimB otherwise the filter won't reach FactA.
A better option would be to consolidate both dimensions into a single table.