Map one variable to another

Hello, I am using Azure log analytics as data source. Looking for some immediate help. I have 3 drop downs with multi values as below

Provider --> Resource Type --> Metrics

It works fine when i select single provider and resource type, but when i multi select them, some of the queries throw error because of the mapping between the variables.

Is there a way I can map a particular provider to specific resource types and a particular resource type to specific metrics? Or is there a better way of doing it?

Can chained variables be of any help here?

For more info, I am repeating panels over metrics horizontally and repeating row over resource type. Please help. Thank you!!