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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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.


@ 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...

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
Super User
Super User

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.


@ 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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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