Using a Dashboard Prompt as a Column Selector for Multiple Reports
Dashboard prompts are typically used for filtering data values in reports, but you can also use Dashboard prompts to switch out columns on multiple reports, similar to the way a column selector would work on an individual report, but on a broader scope. Here is an example along with the high level steps:
1.Identify the names of the columns to include in the Dashboard Prompt Column Selector, in this example: Region and Market
2.Create a logical column that will produce these values:
CASE WHEN Paint.Periods."Year" < '2001' THEN 'Region' ELSE 'Market' END
Create a new Dashboard Prompt that contains this column and populates a Presentation Variable based on this column:
Create your reports that will be affected by this Dashboard Prompt. For the specific report column that will be switched out, use the Presentation Variable in the column formula to dynamically change the column data based on the Dashboard Prompt:
1.It’s a good idea to specify a default value for the Presentation Variable. Also note that in this example, we have hardcoded the name of the Presentation Table (“Market”) since both Region and Market columns belong to this table. If you are trying to switch out columns from different Presentation Tables, you cannot hard code the Presentation Table name, instead it will have to come from the Dashboard Prompt.
2.Now assemble the Dashboard with the Prompt and Reports. One limitation is that there is no way to include the Presentation Variable as part of the Column Heading, so the Column Heading will remain static (in our example, we use the generic Column Heading “Geography”). However, OBIEE will allow you to include a Presentation Variable in a Dashboard Section Heading:Units by @{COLUMN_SELECTOR}{Region} Here’s the end result:
Market selected in Dashboard prompt: