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,
Hi Anonymous
Just create relationships Master - Servers and Master - Workstaions (both one-to-many) and add columns to visual
Thanks! I created the relationship but the column that should have the combined values from Server and Workstation is not doing so?
- az386 years ago
Community Champion
Anonymous
what do you mean "combine"? how it should look like? give an example please
- v-lid-msft6 years ago
Community Support
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,