Hi Fabián,
You can use the Overlap subtab within the Group Comparison tab to create groups that capture, for example, all samples without a mutation in TP53. You can see step by step instructions starting on slide 25 of the group comparison tutorial:
https://www.cbioportal.org/tutorials#group-comparison
You can use the overlap tab to select samples without TP53 mutation. The altered and unaltered groups take into account all 3 queried genes (altered in one or more genes; unaltered in all genes) - to get only those without TP53 mutation, you want the altered samples that don't have TP53 mutation (40 samples) plus all 173 unaltered samples:
Once I create that group, I can go back to the Survival subtab and compare TP53 mutant to not mutant:
Another option is to query for one gene at a time, in which case the default altered/unaltered groups will be samples with/without alteration in that gene.