JSONATA: how to filter nested json

I have this nested json
{
“menu”: {
“D1”: {
“ALC”: {
“1”: [
{
“prefix”: “1”
}
],
“2”: [
{
“prefix”: “2”
}
],
“3”: [
{
“prefix”: “3”
}
],
“4”: [
{
“prefix”: “4”
}
]
}
}
}
}
i would get all prefix. To mention ABC is a variable like $variableABC and Mio is a variable as well like $variableMio. i treid something like this menu[$variableABC.$variableMio].*.prefix. I’m working in grafana fileds by jsonata.
i’m doing something wrong but i don’t understand what wxactly