Hello Nate, thank you for your patience as we investigated the issue.
The problem stems from Customer Number having null values for both cases:
1. The customer count not descending/ascending like what is expected
2. When try to make a calculation on the value
I created a metric with the same value you have shared in the first screenshot and just added if there is null value, swap it with 0
So your metric is:
SELECT COUNT( Customer Number {label/customer_number})
My metric is:
SELECT IFNULL(COUNT({label/customer.customer_name}), 0)
I have created the visualisation
here:
As you can see the customer count(test4) is showing them in correct order.
And for the second screenshot you shared, I replicated and performed sum of all Customer Count(test4 metric) and it worked without an error.
To sum it up, when there is a null value in data, it creates all sorts of problems. It is always a good idea to make sure there are no null values.
Please let me know if there is anything else I can help you with.