Forum Discussion
Creating relationship from 2 tables
Hi, I am trying to create a relationship between these 2 tables by linking and it just don't link. I have no problem in linking using other applications.
ARCUSO - [OPTFIELD] ---> CSOPTFD [OPTFIELD]
ARCUSO - [VALUE] ---> CSOPTFD [VALUE]
What is the best way to do?
Any help is much appreciated.
Samanthayou cannot create relationship on two fields, best way is to add new calculate column in both table by concatenating these two fields fields and then set the relation on this new calculated columns. hope it is clear.
Hi Samantha,
Agree with parry2k, to create a relationship based on multiple fields, you may need to combine them first.
Please create a calculated column in both 'ARCUSO' and 'CSOPTFD'.
ColumninARCUSO='ARCUSO'[OPTFIELD] & " " & 'ARCUSO'[VALUE]
ColumninCSOPTFD='CSOPTFD'[OPTFIELD] & " " & 'CSOPTFD'[VALUE]
Then, create a relationship like below:
ARCUSO - [ColumninARCUSO] ---> CSOPTFD [ColumninCSOPTFD]
Best regards,
Yuliana Gu
6 Replies
- v-yulgu-msft
Microsoft Employee
Hi Samantha,
Agree with parry2k, to create a relationship based on multiple fields, you may need to combine them first.
Please create a calculated column in both 'ARCUSO' and 'CSOPTFD'.
ColumninARCUSO='ARCUSO'[OPTFIELD] & " " & 'ARCUSO'[VALUE]
ColumninCSOPTFD='CSOPTFD'[OPTFIELD] & " " & 'CSOPTFD'[VALUE]
Then, create a relationship like below:
ARCUSO - [ColumninARCUSO] ---> CSOPTFD [ColumninCSOPTFD]
Best regards,
Yuliana Gu
- Samantha
Advocate I
Hi Yuliana
Thanks for your solution. It working now.