Forum Discussion
Data Modeling Question
- Anonymous5 years ago
I was able to figure out this problem on my own. In order to take care of hierarchy between geographical dimension tables (State/County/City) all I had to do was to create Location table with nullable Foreign Keys. See below screenshot.
Anonymous , I removed some bi-directional relations. But this model needs changes. recommandation will merge with State_rec , country_rec and City_rec and create three fact recommandation_State_rec , recommandation_country_rec
City_rec_recommandatio. They will not join with each other
https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/
Thanks for looking into this.
I have tried your proposed solution but it breaks cross filtering across other visuals. See below screenshot.
Can you please elaborate on how you propose to change the data model. I am afraid I don't fully understand your previous explanation. I need to keep cross-filter both directions for State > County > City relationships.
Also I assumed state_recs, county_recs and city_recs are already considered fact tables since they contain foreign keys from recommendations and states/counties/cities respectively.