HASONEFILTER – DAX Guide

HASONEFILTER: Returns true when the specified table or column has one and only one value resulting from direct filter(s).
https://dax.guide/hasonefilter/