you can try to create a alarmband table like below.
then create a measure
MEASURE =
VAR _total =
SUM ( 'customer alarm'[CountofAlarm] )
RETURN
IF (
_total >= MAX ( AlarmBands[left] )
&& _total <= MAX ( AlarmBands[right] ),
_total,
0
)