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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
clinegirl
New Member

Missing Primary and Foreign Key Columns

In my default semantic model, I can see relationships for my various foreign and primary keys. 

clinegirl_0-1726684645924.png
However, the keys are gone when I try to create a new semantic model.  They also are not displaying in PowerBI.  

clinegirl_2-1726684798484.png

 

I also see this error message when trying to edit the relationships in my default model:

clinegirl_1-1726684745014.png

I'd love to understand why this is happening and what I can do to properly configure my model. Thanks!

2 REPLIES 2
clinegirl
New Member

Hi Yang,

Makes sense re: relationships and new semantic models.

I've verified that the column exists and is not hidden in my default semantic model.  However, it does not show up when I build a PowerBI report using my default semantic model. Example:

clinegirl_0-1727199680185.png

The key columns do not display in PowerBI report with the semantic default model:

clinegirl_1-1727199742483.png

When I try to filter, no changes happen because it's not picking up the keys

 

Anonymous
Not applicable

Hi @clinegirl ,

 

For the nuisance of relationships disappearing when you create a new semantic model, according to the official documentation, relationships, metrics and other properties are not inherited from the default semantic model when you create a new semantic model, you need to define them manually.

vhuijieymsft_0-1726712621561.png

 

For more details, please see:

Improvements for creating new Direct Lake semantic models | Microsoft Power BI Blog | Microsoft Powe...

 

When you try to edit a relationship in the default model, the error message you’re seeing indicates that the column airline_key is missing from the table.

 

I have some suggestions to offer:

 

  • Ensure that the airline_key column is not hidden in the table.
  • Ensure that the airline_key column exists in the table.
  • After verifying the column exists, try recreating the relationship. Go to the Model view, select the tables, and drag the airline_key from agg_monthly_airline to dim_airline.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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