Logical fallacy

Cherry-picking

Selects favorable findings, cases, periods, or measures while omitting relevant unfavorable evidence, then draws a conclusion the selective subset cannot justify.

Also called Card stacking, Selective evidence

A hand taking only ripe red cherries while leaving the many spoiled ones visible

Examples

The sensor improved on two days and failed on eight. I present only the two good days as proof of consistent improvement.
The unseen days bear on the claim of consistency and contradict it. The selected days give a distorted picture.
I list three favorable reviews and withhold nine equally credible unfavorable ones so I can call the reviews unanimous.
The program report inspected six metrics and reported only the two that improved as proof the program worked overall.

A similar case that can be sound

A study reports its primary outcome chosen in advance, discloses the other outcomes, and limits its conclusion to the primary outcome.