Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
waleedjaved
New Member

Struggling to Connect tables for data modeling

I’m working on a Power BI data model where I have 3 fact tables, 2 dimension tables, and 1 date table. The challenge is that some fact tables don’t have direct foreign keys to the dimensions. Because of this, my visuals are not filtering correctly when I apply a Year filter from the Date table. I’m confused about how to correctly connect these tables to build a proper star schema and ensure the filters work as expected.

Here is the link to powerbi file  

3 REPLIES 3
v-agajavelly
Community Support
Community Support

Hi @waleedjaved ,

Thanks a lot to the @Nabha-Ahmed , @danextian and @CranialyticsDev   for jumping in here and sharing the detailed guidance.

@waleedjaved did you get a chance to go through the suggestions already shared? As the super users mentioned, the file link you shared seems to be blank, so it’s hard for the community to validate the exact relationships in your model.

If you’re still facing issues after trying the approaches proper Date table marked, star schema, bridge/lookup tables, or creating derived keys, could you please re-share a workable PBIX file with some sample data? That would make it much easier for the community to give you a precise solution tailored to your model.

Thanks,
Akhil.

CranialyticsDev
Regular Visitor

Hi @waleedjaved 
Just wanted to add a solution.
As you have mentioned few Dimension tables could not be joined with Fact table as there is no direct foreign keys. Below could be possibe solution:
Create Derived Common Column in BOTH table

Conditional Logic/Calculated Columns: If a relationship can be defined by a range or a specific condition (e.g., a salary falls within a min/max range in another table), you might create a calculated column in one or both tables that derives a common key based on that logic
Concatenation: This could be an easy solution to combine values of two of more column to form a new column and use it for relationship. But again if there is complete mismatch in columns then concatenation of columns couldn't be a solution.

I hope this will be helping you to get solution.

danextian
Super User
Super User

The folder you shared is empty.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.