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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Creating a new column by combining two different columns from different tables

I have three different tables - Master, Servers and Workstations. 

 

They all contain the same columns but Server and Workstation are filtered for Device Type = Server or Workstation. The tables, Server and Workstation each also contain an additional column called Status. 

 

I want to combine the status columns in Server and Workstation and bring it over to Master. How do I do this?

 

 

 

1 ACCEPTED SOLUTION

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,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
az38
Community Champion
Community Champion

Hi @Anonymous 

Just create relationships Master - Servers and Master - Workstaions (both one-to-many) and add columns to visual

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

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,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
az38
Community Champion
Community Champion

@Anonymous 

what do you mean "combine"? how it should look like? give an example please

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.