How to configure dynamic query in OMI Alarm App (Historical Alarms)

Hi, I'm trying to configure the OMI Alarm App to follow context in historical alarm mode. If anyone have knowledge or examples to share it is highly appreciated.

Version 2023 P01.