I'm not sure what went wrong, but it works after I delete and re-create the query from scratch. A Cognos bug?
Thanks hespora for all your help!
Thanks hespora for all your help!