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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.