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
masplin
Impactful Individual
Impactful Individual

Custom column failing to add to together numerical columns

I have 4 numerical columns that i tried to add together by just putting a "+" between the field names using the wizard, but it just produces null values.  the query is below

 

= Table.AddColumn(#"Changed Type7", "Custom", each [#"Exceptional Items pre GP#(lf)th GBP Last avail. yr"]+[#"Exceptional Items pre OP#(lf)th GBP Last avail. yr"]+[#"Exceptional Items#(lf)th GBP Last avail. yr"]+[#"Other Exceptional Items#(lf)th GBP Last avail. yr"])

However i found if I select the columns and use the statisitcs/sum function it works and query looks like this

 

= Table.AddColumn(#"Added Custom9", "Exceptionals", each List.Sum({ [#"Exceptional Items pre GP#(lf)th GBP Last avail. yr"],[#"Exceptional Items pre OP#(lf)th GBP Last avail. yr"],[#"Exceptional Items#(lf)th GBP Last avail. yr"],[#"Other Exceptional Items#(lf)th GBP Last avail. yr"]}),type number)

Can someone explain why just putting a "+" between field names doesn't work as sure i've used convetional mathematical operators before in custom columns?

 

Thanks for any advice

 

Mike

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@masplin

 

You might have null values in some columns

 

null + 10 = null in Power Query/M
But
List.Sum({10,null})=10

 

 

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@masplin

 

You might have null values in some columns

 

null + 10 = null in Power Query/M
But
List.Sum({10,null})=10

 

 

Yes lots of them. Thought a null was a blank, but there you go thanks for clarifyingi'm not doing somethig wrong

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