Problems with Display Path Filter Application in Alarm StatusTable

Apparently, I don't think I can use a custom with a property change, because I always rely on a multiple status button. If it's 1, it gives me a status filter, and if it's 2, it gives me an alarm filter.

I currently have the binding in the Display Path Filter of the Alarm Status table with this code:

// BESS 1
if ({Root Container.bess_container} = 1, 
    if ({Root Container.PV_stats_alarms_param.controlValue} = 1, 
        "BESS_" + {Root Container.bess_container} + {Root Container.bess_number} + "*Status:*, BESS_" + 
        {Root Container.bess_container} + {Root Container.bess_number} + "*Trickle charging Status:*",
    if ({Root Container.PV_stats_alarms_param.controlValue} = 2, 
        "BESS_" + {Root Container.bess_container} + {Root Container.bess_number} + " Alarms:*", 
        "")
    ),
    
    // BESS 2 - false logical 1 if container 2 is selected
    if ({Root Container.PV_stats_alarms_param.controlValue} = 1, 
        "BESS_" + {Root Container.bess_container} + {Root Container.bess_number} + "*Status:*, BESS_" + 
        {Root Container.bess_container} + {Root Container.bess_number} + "*Trickle charging Status:*",
    if ({Root Container.PV_stats_alarms_param.controlValue} = 2, 
        "BESS_" + {Root Container.bess_container} + {Root Container.bess_number} + " Alarms:*", 
        "")
    )
)