Create one calculated field and use
FIRST()=0 OR LAST()=0
formula in Calculated field.
Drag this calculated filed in Filter and select True. It will give you First and Last value in same Date partition.
if It will help you kindly mark this answer as correct or helpful so that it will helpful for others