Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm looking to rank my results only if each customer has greater than 50 work orders. I can't seem to get it just right. My current ranking formula, ranks all the customers.
what happens if you remove the apostrophes?
with apostrophes QV interpretes it as string not as num!
It maybe hard to tell, but what I have here are 8 if statements. I'm summing the results of each if statement to get a score. I did fail to copy and paste correctly, so here's the entire expression. The ranking of the 8 if statements works correctly, it returns a rank of 1 to 93. But there are only 35 customers with >50 work orders.. so the ranking should result in 1 to 35, ignoring the 58 customers with less than 50 work orders.
I removed the apostrophes... no change.
Try aggr with NODISTINCT:
1-st line :
if(aggr( NODISTINCT sum(workorderflag),Vendor_Name)>'50',