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
Johnny1981
New Member

Total by year. Values in 2 columns

Hi, I have a table like this, where the amounts are divided into 2 diferents columns. 

 

First PaymentYear 1° PaymentSecond PaymentYear 2° Payment
$ 43.499,002013$ 43.501,002013
$ 73.140,002013$ 73.141,002013
$ 87.686,002013$ 87.687,002013
$ 83.064,002013$ 83.064,002013
$ 75.875,002013$ 75.875,002013
$86.500,002013$ 86.500,002013
$ 74.027,002013$ 74.027,002013
$ 90.725,002013$ 90.726,002013
$ 65.197,002013$ 65.197,002013
$ 65.404,002013$ 65.404,002013
$ 80.000,002013$ 80.000,002013
$ 235.000,002014$ 235.000,002014
$ 205.000,002014$ 205.000,002014

 

I wanna get the total by year

 

YearTotal Payment
2013 $       1.650.239
2014 $          880.000

 

 

Thanks !!

 

 

2 REPLIES 2
MattAllington
Community Champion
Community Champion

Reshape you’re table in power query before you load it.  Set it up as 

 

paymentyear, payment number, amount

 

then it is eaSy


 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Thank you very much for your answer. The table in my example is only part of a very large table, in which I cannot make the change you say. The table has one row for each company.

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.