Thanks to the pointer above, this is the fix:
function training_qv_anyx_training_gb($stmt) {
$post_type = get_post_type();
if ($post_type == "anyx-training") {
return '';
}
}
add_filter( 'posts_groupby', 'training_qv_anyx_training_gb');