How to create a measure depending on the hierarchy level in the matrix?

Hi @Harris,

You can also refer to below link where we have DAX calculation for hierarchy

How to do Conditional Format referring to group average - #9 by MK3010