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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Need to Total sum of a column in each row

HI,

 

I need to Create a column which shows the total summation of the shown column using Power Query. For ex If the total of the attached column is 100, it should assign to all the rowsExample.PNG

1 ACCEPTED SOLUTION

@Anonymous ,

 

Try this:

=Table.AddColumn(#"Changed Type5", "Custom", each List.Sum(#"Changed Type5"[ROI For Bin]))

 

Also, please if you get error again, code the error message.

 

 

 

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

6 REPLIES 6
camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

Use this code for a custom column:

List.Sum(#"Changed Type"[Column1])

 

Change the bold part for your last step name.

 

Capture.PNG



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

Not Sure.. But it gives me error

@Anonymous ,

 

What error are you getting ?

Please, show your m-code.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

= Table.AddColumn(#"Changed Type5", "Custom", each List.Sum(#"Changed Type"[ROI For Bin]))

 

This is the error code.  I am a beginer in Power BI so do let me know if I am providing some wrong information.

@Anonymous ,

 

Try this:

=Table.AddColumn(#"Changed Type5", "Custom", each List.Sum(#"Changed Type5"[ROI For Bin]))

 

Also, please if you get error again, code the error message.

 

 

 

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

It worked 🙂 thx a lot

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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