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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pokdbz
Helper II
Helper II

Assume referential integrity grayed out

I have a Direct Query model and need to set a relationship with the Assume referential integrity checkbox.   The box is grayed out and unselectable.  I don't have any nulls in the data.  Does anyone have an idea what the problem is?

4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

Hi @pokdbz ,

Please check if the following 2 requirements for Assume referential integrity has been meet to make it work properly:

  • Data in the From column in the relationship is never Null or blank
  • For each value in the From column, there is a corresponding value in the To column

You can check this documentaion for the full details.

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yiruan-msft 

I've verified for nulls and each value on the fact table has a corresponding value in the dimension.

I've also tried deleting the relationship and adding it back in and it still has a problem.

 

Hi @pokdbz ,

It seems OK. Then could you please provide your sample PBIX file in order to make troubleshooting?

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

I don't believe you can do that in a Direct Query model. I may be mistaken.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.