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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rickylee
Helper III
Helper III

Dynamics 365 connection table and account table - self referencing problem

Hello,

 

I have Dynamics 365 CRM which has a database comes with it. There is a table called accounts and it is self referencing through a table called connections. 
The reference key in Account: accountid
Reference keys in Connections: _record1id_value, _record2id_vlaue

I can create a relationship between accountid to _record1id_value but cannot create another relationship between _record2id_vlaue and accountid.


self referencing problem.PNG

Is there a way to solve this problem?

Thanks,
Ricky

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

You should be able to create the connection but it should get created as inactive. You can use USERELATIONSHIP in your calculations to determine which one you really want to use at a given time.

 

Another way to do this would be to import Connections table twice or Accounts table 3 times possibly.

 

Hard to say really though as it's not apparent what exactly you are trying to accomplish overall.



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
rickylee
Helper III
Helper III

@Greg_Deckler
I choose to re import the same table althought not sure it is the best solution but the best solution so far 🙂

Thanks,
Ricky

Greg_Deckler
Community Champion
Community Champion

You should be able to create the connection but it should get created as inactive. You can use USERELATIONSHIP in your calculations to determine which one you really want to use at a given time.

 

Another way to do this would be to import Connections table twice or Accounts table 3 times possibly.

 

Hard to say really though as it's not apparent what exactly you are trying to accomplish overall.



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors