Thursday 6 November 2014

Pass Presentation Variable To the Title View Using Dashboard Prompt?

When you select a value from the dashboard prompt , the title is reflected correctly with the selected value in dashboard prompt.

Create the report:

  • Create an analysis using SampleAppLite repository with following criteria:
  • Add a Filter ->Product: Brand and make it 'Is prompted' (we will be making Brand as the presentation variable)
  • Click on Result and Edit the Title.
  • In the 'subtitle' field , Enter the name of presentation variable, say @{Brand}
  • Save the report as 'Presentation var'

Create the Dashboard prompt

  • Create a New Dashboard Prompt (New->Dashboard Prompt)
  • Add a Column Prompt: Product ->Brand
  • Expand the Options and Set a variable to 'Presentation variable' and Enter 'Brand' in the field below.
  • Save the dashboard prompt as 'PVprompt'

Create the Dashboard Page

  • Create a new board and name it as :PVDashboard
  • Drag and drop the Dashboard Prompt created from Section 2 into the dashboard page
  • Drag and drop the report created from Section 1 to the dashboard page
  • Save the Dashboard page and run it.
  • When there is no value selected in the dashboard prompt, the subtitle is displayed as '@{Brand}
  • When you select a value for Dashboard prompt : say 'BizTech', it is displayed correctly as BizTech as shown below:
  • To fix this issue, Do the following:
  • Edit the Title view from Results tab and add a default value for All selection for eg, 'All Brand' in this case: @{Brand}{All Brand} and Save the title.
  • Save the Dashboard PVDashboard,and Run it .Now the Presentation Variable is displayed correctly when you don't select any value for the Dashboard prompt.

Happy Stay. :-)

No comments:

Post a Comment