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

Combine two columns with same name from different table in visualisation

I have two sets of table as below:

cust_nameABC
John553
Mary 3 
Ken 4 

 

cust_nameCDE
John2 1
Amy14 
Julia6 1

 

How can I combine and sum the column C in visualisation as below:

 

cust_nameABCDE
Amy  14 
John555 1
Julia  6 1
Ken 4   
Mary 3   

 

The two original tables were formed based on different level of breakdown and the level of breakdown does not work parallel with each other. Some of the breakdown will be coincidentally having the same name at a particular level. Thus, is that possible not the append the table, but applying the summation with the same name at the visualization level? Can it also be applied to  the same scenario each time i change the level of breakdown?

2 ACCEPTED SOLUTIONS
Hardik
Continued Contributor
Continued Contributor

after appending the queries for tables,you can create a dax query to summarise the data for the same name Screenshot_18.png

View solution in original post

Anonymous
Not applicable

HI @Anonymous,

 

You can also try to use unpivot columns and pivot column function to achieve your requirement.

Sample: create new blank query to store transformed records.

let
    Source = Table.Combine({Table.UnpivotOtherColumns(#"Table1",{"cust_name"}, "Attribute", "Value"),Table.UnpivotOtherColumns(#"Table2",{"cust_name"}, "Attribute", "Value")}),
    #"Pivoted Column" = Table.Pivot(Source, List.Distinct(Source[Attribute]), "Attribute", "Value", List.Sum)
in
    #"Pivoted Column"

16.PNG

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Hardik
Continued Contributor
Continued Contributor

after appending the queries for tables,you can create a dax query to summarise the data for the same name Screenshot_18.png

Anonymous
Not applicable

Hi @Hardik, is there any other alternative without appending the table?

Anonymous
Not applicable

HI @Anonymous,

 

You can also try to use unpivot columns and pivot column function to achieve your requirement.

Sample: create new blank query to store transformed records.

let
    Source = Table.Combine({Table.UnpivotOtherColumns(#"Table1",{"cust_name"}, "Attribute", "Value"),Table.UnpivotOtherColumns(#"Table2",{"cust_name"}, "Attribute", "Value")}),
    #"Pivoted Column" = Table.Pivot(Source, List.Distinct(Source[Attribute]), "Attribute", "Value", List.Sum)
in
    #"Pivoted Column"

16.PNG

 

Regards,

Xiaoxin Sheng

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.