Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello, I need advice with a data modeling problem. Below you may find 3 screenshots and attached PBIX file.
Screenshots below show:
This data model contains several linking tables for many-to-many relationship between Recommendations table and different geography levels tables (State, County, City). I know that some relationships need to be changed in order to fix this problem but I'm not sure which ones.
Screenshot 1 - What my report looks like:
p
Screenshot 2 - The problem I am experiencing:
p
Screenshot 3 - My current data model:
p
Thank you!
Solved! Go to Solution.
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.
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.
@al1mon , 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.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 59 | |
| 31 | |
| 26 | |
| 25 |