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

Create a New Table with the Sum of the values of Different Columns of Different Table

Hi! I am new to PowerBi software and I would need some help for an issue.

 

I have 4 tables with different observations and values (x) divided by Country and Year as for instance:

 

Table 1 x
2022France1
2022France2
2022Belgium3
2021France5
2021Belgium6
2021Spain5
2020France7
2019France8
2019Belgium9

 

Table 2 x
2022France6
2022France4
2022Belgium2
2021France7
2021Belgium3
2021Spain5
2020France2
2019France1
2019Belgium5

 

I want to calculate a sum of all these tables per year, so to get a timeline bar chart by year that will contain the sum of all these observations from 2022 from Table 1 and Table 2, for instance (get a 18 for 2022). I think that I need to create another table or use an append, because if I create a measure in one existing table with a formula by summing the data from different tables I got an error, presumably with the year, as PowerBi turns crazy by trying to sum data from another table and an exact year. In Excel it may be translated as a SUMIF.

 

Thank you very much in advance,

Sergi

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sergigomez , Option one create common dimension table and sum measure from both table

 

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

 

or

Append Summarize

https://medium.com/@amitchandak/power-bi-power-query-vs-dax-append-and-summarize-data-233f173d0839

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@sergigomez , Option one create common dimension table and sum measure from both table

 

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

 

or

Append Summarize

https://medium.com/@amitchandak/power-bi-power-query-vs-dax-append-and-summarize-data-233f173d0839

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors