Forum Discussion
Creating a new column by combining two different columns from different tables
- 6 years ago
Hi Anonymous ,
If you have the "one to many" relationship from master tables to the others, we can try to create a calculated column using following formula:
Status = "Server: " & CONCATENATEX ( RELATEDTABLE ( 'Server' ), [Status], "," ) & UNICHAR ( 10 ) & "Workstation: " & CONCATENATEX ( RELATEDTABLE ( 'Workstation' ), [Status], "," )If they have the one to one relationship, we can use the following formula to create a calculated column:
Status = "Server: " & RELATED ( 'Server'[Status] ) & UNICHAR ( 10 ) & "Workstation: " & RELATED ( 'Workstation'[Status] )
If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.
Best regards,
Thanks! I created the relationship but the column that should have the combined values from Server and Workstation is not doing so?
Hi Anonymous ,
If you have the "one to many" relationship from master tables to the others, we can try to create a calculated column using following formula:
Status =
"Server: " & CONCATENATEX ( RELATEDTABLE ( 'Server' ), [Status], "," )
& UNICHAR ( 10 ) & "Workstation: "
& CONCATENATEX ( RELATEDTABLE ( 'Workstation' ), [Status], "," )
If they have the one to one relationship, we can use the following formula to create a calculated column:
Status =
"Server: " & RELATED ( 'Server'[Status] )
& UNICHAR ( 10 ) & "Workstation: "
& RELATED ( 'Workstation'[Status] )
If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.
Best regards,