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
Gaizka
Regular Visitor

Sum from different tables based on other values

I have some tables with the same information:

 

Table 1, 2, 3...

 

Date     Country     number of sales

 

 

 

At the same time, I have created 2 tables with unique values for Country and Date to relate everything and that´s working fine.

 

However I would like to have a table with the sum of table 1, 2, 3 for the same date and country.

 

What is the best way to do that?

 

Thanks a lot

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Gaizka,

Please create a new table by clicking "new table" under Modeling on Home page, type the following DAX.

New Table=
SUMMARIZE (
    UNION ( UNION ( Table1, Table2 ), Table3 ),
    [Date],
    [Country],
    "sum sales", SUM ( [number of sales] )
)


If this still doesn't resolve your issue, please create dummay sample table and list expected result, so that we can share more detailed solution.

Best Regards,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Gaizka,

Have you resolved your issue? If you have, welcome to share your solution or mark the right reply as answer. More people will benefit from here.

Best Regards,
Angelia

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Gaizka,

Please create a new table by clicking "new table" under Modeling on Home page, type the following DAX.

New Table=
SUMMARIZE (
    UNION ( UNION ( Table1, Table2 ), Table3 ),
    [Date],
    [Country],
    "sum sales", SUM ( [number of sales] )
)


If this still doesn't resolve your issue, please create dummay sample table and list expected result, so that we can share more detailed solution.

Best Regards,
Angelia

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.