I had the same problem today and it took me up to 3 hours to get the solution, or let's call it a workaround:
It helped for me to sort the Legend in another way. Try not to sort from "A->Z" but from "Z->A", afterwards I got the right sums...
By the way: This is Version 11!!!! How the f**** can something like that happen?