Chained variable are not interpolating to expected string in query

  • What Grafana version and what operating system are you using?
    → Grafana v12.1.1 (df5de8219b)

  • What are you trying to achieve?

    • We have a parent variable which is “UserJourney” and it has following Option Search, account or Product and I want to have many other variables which depending of “userJourney“ variable.

    Example Namespace variable which can be a key value variable with value.
    search : search_ns1|search_ws1|search_ps1, account : account_ns, product : product_ns

    Another variables which are path with value Path:
    search : search_path, account : account_path, product : product_path

    We wish to userjourney variable which can be selected by user at the top of the dashboard and variables namespace and path which will be used in all my panel query in my dashboard with a automatic reload when I change env variable value. We are using $namespace variable to fetch value of namespace string based on a infinity data source which is backed by a static inline CSV .

  • How are you trying to achieve it?

    I have followed

  • https://community.grafana.com/t/grafana-dashboard-variables-depending-a-common-one/142059/4

  • What happened?

    • the promql query with ${Namespace} variable interpolating to “search”(value of userJourney selected) — but expected value is “search_ns1|search_ws1|search_ps1“ .
      Strangely , ${Namespace} is properly translated when I Use the same variable in Panel Displayname.
  • What did you expect to happen?
    The chained dependent variable should translated to expecte string as specified.

  • Can you copy/paste the configuration(s) that you are having problems with?
    NA

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    NA

  • Did you follow any online instructions? If so, what is the URL?

    Grafana dashboard variables depending a common one - #4 by dawiddebowski

welcome to forum @abishekraj

So userJourney has what as datasource?