Forum Discussion
Hierarchical Relationships
hi, Anonymous
I'm a little confused about your description,
Since you want to link casefiles with all hierarchy tables, you could just create a relationship with hierarchy_7 table, what is your expected output?
Best Regards,
Lin
Imagine this tables :
casefiles
nodeID NumberCases
1 2
2 3
3 1
4 1
5 5
hierarchy_7
nodeID parentID
4 10
3 9
hierarchy_6
nodeID parentID
9 11
10 12
5 13
If I only link the hierarchy_7 with casefiles I will only get the values from the nodes 3 and 4 , and I still wanted the values from the hierarchy_6 from the node 5 ...
I hope this helps you visualize it :) v-lili6-msft
- v-lili6-msft7 years ago
Community Support
hi, Anonymous
Your data model is strange, I'm afraid it is difficult to create the relationship with all the hierarchy tables.
Usually, the lowest level table should have the complete substructure.
For your data model, It likes that use merge left join all the hierarchy tables then create the relationship with each column. It could not achieve.
So I suggest you optimize this data model.
Best Regards,
Lin