Forum Discussion
Creating relationship from 2 tables
- 8 years ago
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
Hi Samantha,
I was wondering if you have any duplicates in the Optfield and Value in ARCUSO or CSOPTFD?
Just want to understand your data.
Thanks,
- parry2k8 years agoSuper User
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.
- Samantha8 years agoAdvocate I
Hi Parry
Thanks for your advice. It working now.
- Samantha8 years agoAdvocate I
Hi Chiang
Yes, I do have duplicate records in the table.
ARCUSO - per customer can tag to many optional fields
CSTOPFD - per optional fields have many different value
Thanks