Requirement is to switch between multiple reports in a dashboard page based on the prompt selected. Each report has different measures and display a report with all measures as default.To implement this scenario, followed the steps below.
1) Create a dashboard prompt
- Select a variable prompt and set a presentation variable
- Select choice list and add the custom values
- For default selection, specify a value from the choice list
Dashboard "variable" prompt
- Add a dummy column and the custom formula to view the report as per selection (list) made in dashboard prompt. (the data type of my variable is Text.)
- Apply filter on the dummy column
- For the default report with all measures, apply the column formula and filter as below
CASE '@{sys_type}' WHEN 'All' THEN '1' ELSE '0' END
CASE '@{sys_type}' WHEN 'All' THEN '1' ELSE '0' END <> '0'
- For "Gas" report, apply the column formula and filter as below
CASE '@{sys_type}' WHEN 'Gas' THEN '1' ELSE '0' END
CASE '@{sys_type}' WHEN 'Gas' THEN '1' ELSE '0' END <> '0'
- For "Liquid" report, apply the column formula and filter as below
CASE '@{sys_type}' WHEN 'Liquid' THEN '1' ELSE '0' END
3) Add reports to the dashboard page and apply section condition for each report
CASE '@{sys_type}' WHEN 'Liquid' THEN '1' ELSE '0' END <> '0'
Column Filter |
3) Add reports to the dashboard page and apply section condition for each report
- Choose section properties, select condition
- Create a condition based on Analysis, select the report and set “True if Row Count” to “is greater than” 0.
- For the default report set condition as (ROWCOUNT('All') > 0)
- For "Gas" report set condition as (ROWCOUNT('Gas') > 0)
- For "Liquid" report set condition as (ROWCOUNT('Liqud') > 0)
Fantastic this tutorial. It´s was helpful
ReplyDeleteMaciel