I have a data cube, based on an SQL query, with public parameters/placeholders.
The idea is to have filters in a dashboard to pass those parameters to the cube. It works fine for single parameters (eg. enter a number). My issue is when those parameters need to come from a hierarchy.
This is basically my set up:
- data cube with a query like ‘select … where level1=$level1$ and level2 = $level2$’ (not that level1 and level2 are not part of the output of the cube)
- data cube consisting of all levels of my hierarchy (which actually goes up to level3)
- dashboard which wants to read the hierarchy data cube to pass 2 levels in one go to the data cube
Setting up my parameters (dashboard parameters or ‘connect filter’ on my value filter), I have no way to bind them to the cube parameters (it kinda makes sense I suppose, as they are not the same type). Is there a way to do this?
Alternatively, as I have an “update filter” button, so if there is no UI way, I will script this - get the parameters from my filter and pass them to the data cube, as a click action.