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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors