Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Passing specific values based on value selected

$
0
0
So I have a data cube set up and connected my dashboard to it. I have set up a chart that looks at some information across all waves of the study (there are 4 waves). I would like the default functionality to be showing the information for all 4 waves, with the ability to filter based on a specific wave. I have set up a select component using a SQL query (with a union) to create the possible selections of All (default), Wave 1, Wave 2, Wave 3, Wave 4. I am passing this to an MDX query. My query selects all waves by using the [Variable].[Value].Members, but for individual waves it looks like this [Variable].[Wave 1].

I want to know if there is a way to specify different values to pass based on the select components. I would essentially like to have my query look like this
[Variable].${wave}

where
All -> [Value].Members
Wave 1 -> [Wave 1]
Wave 2 -> [Wave 2]
Wave 3 -> [Wave 3]
Wave 4 -> [Wave 4]

Does anyone know how I can pass these specific values based on the appropriate selection?

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>