Hi Jomy,
As you are using 2 different queries Technical Key [Extended ID] would be different for Drivers.
Main Query - DS_MQ
Sub Query - DS_SQ
So we need to perform 2 additional tasks
a. Identify the Tech ID based on Text
b. Identify the drivers selected in filter
1. Once you apply filter on Dimension filter based on DS_SQ
Get the text of the selected members.
var filterval = DS_1.getFilterText("00O2TRXZJJA90ZPD6P6VPRMU2");
2a. Replace the Text of the Driver with Technical ID based on DS_SQ
DR1 = Convert.replaceAll(filterval, "DR1_Text", "DR1_ID_SQ");
2b. Identify if DR1 was selected in the filter.
var int = DR1.indexOf("DR1_ID_SQ");
If yes then,
variable driver1 = "DR1_ID_SQ" .
3. Once you apply 2a and 2b for all the drivers
DS_MQ.setFilter("Dimension", [driver1,....];
This should get the required result.
Thanks,
Kishore