ISSUBTOTAL – DAX Guide

ISSUBTOTAL: Returns TRUE if the current row contains a subtotal for a specified column and FALSE otherwise.
https://dax.guide/issubtotal/