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
Examples
The sensor improved on two days and failed on eight. I present only the two good days as proof of consistent improvement.
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.