Maths.Sum not Working?

Hi all,

I was wondering if anyone could help me remedy this script?
It was working last night and I can’t fathom why all of a sudden it’s not working today.
The Math.Sum is not adding up the lists as it previously did last night and I cant figure out why.

I realize it’s probably an easy fix, but if anyone has any insight that would be great

Hi @Vykr

Here are some possible ways to remove null values.

Thanks both for your help.

I knew it was something to do with cleaning the nulls, but I was worried in case I’d break the rest of the script as I actually need the null values to put in a parameter in the spaces to say there is an error.

I got a workaround though, thanks.

Agreed @erfajo :thumbsup:

No matter which way I do the math.sum it seems to give me an error (probably down to the Nulls)

I’m not sure how I can tidy up this to get rid of these error messages (the script still works as it should, just would prefer to get rid of these errors)

@Vykr Why are you using many times Math.Sum. if you use List.Clean with preserve indices set to false will be good enough. And also your elements (spaces) lists is not equal to your values list.

@Kulkul sorry, ignore all of them. I put them in to show it still wasn’t working no matter which way I wrote it.
However I managed to sort it, that part of the script is working.

Wish it could be said for the rest, thanks.