Hey PRD experts,
Is it possible to run a query on an external data source, and then query the resulting table multiple times to populate multiple parameters?
I have a query that returns two columns like the table at the bottom of this post. Using this query as a source, I would like to create a [day_param] that displays distinct values from the first column (e.g., SELECT DISTINCT day). And I would like to create a [mkt_param] that displays values from the second column based on the user's [day_param] selection (e.g., SELECT mkt WHERE day = [day_param]).
I am trying to avoid querying my external data source twice. Is this possible?
Thanks,
RR
Is it possible to run a query on an external data source, and then query the resulting table multiple times to populate multiple parameters?
I have a query that returns two columns like the table at the bottom of this post. Using this query as a source, I would like to create a [day_param] that displays distinct values from the first column (e.g., SELECT DISTINCT day). And I would like to create a [mkt_param] that displays values from the second column based on the user's [day_param] selection (e.g., SELECT mkt WHERE day = [day_param]).
I am trying to avoid querying my external data source twice. Is this possible?
Thanks,
RR
day |
mkt |
2013-12-21 |
CA |
2013-12-21 |
CN |
2013-12-21 |
DE |
2013-12-14 |
CA |
2013-12-14 |
CN |
2013-12-14 |
DE |
2013-12-14 |
ES |
2013-11-30 |
CA |
2013-11-30 |
CN |
2013-11-30 |
DE |
2013-11-30 |
FR |