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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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.


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!:
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.


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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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