function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Eli BachEli Bach 

Use SAQL to bind toggle values to a second toggle (Einstein Analytics)

Hi - I am trying to change the values in a toggle by binding their values to a selection in a second toggle. I am working on dashboard with two datasets which have different field names. I want to be able to select the dataset in one toggle, and use a second toggle to change the grouping in a chart lens. Because each dataset has different field names, the second toggle would need to have its values updated depending on which dataset is selected.

If using the example below, when "Selection 1" is selected in Toggle_1, I would like the "Selection 1a" in Toggle_2 to have its value ("Output_1") repalced by value2 in Toggle_1 ("Grouping_1") . It would essentially be binding the results from Toggle_1 into Toggle_2.

Thanks for any ideas! 

"Toggle_1": {
  "broadcastFacet": true,
                "isGlobal": false,
                "selectMode": "singlerequired",
                "start": {
                    "display": [
                        "Selection 1"
                    ]
                },
                "type": "staticflex",
                "useGlobal": true,
                "values": [
                    {
                        "display": "Selection 1",
                        "value": "Source_1",
                        "value2": "Grouping_1"
                        
                    },
                    {
                        "display": "Selection 2",
                        "value": "Source_2",
                        "value2": "Grouping_2"
                    }
                    }
                ],
                "numbers": [],
                "strings": [],
                "groups": []
},
"Toggle_2": {
  "broadcastFacet": true,
                "isGlobal": false,
                "selectMode": "singlerequired",
                "start": {
                    "display": [
                        "Selection 1"
                    ]
                },
                "type": "staticflex",
                "useGlobal": true,
                "values": [
                    {
                        "display": "Selection 1a",
                        "value": "Output1"
                    },
                    {
                        "display": "Selection 1b",
                        "value": "Output2"
                    }
                    }
                ],
                "numbers": [],
                "strings": [],
                "groups": []
}