I am not sure whether this topic has been covered or not for Webi Reports. I checked and did not found any links to it hence mentioning it in here.

I had a requirement of a report showing revenue and margin based on some dimensions. What I wanted was to have those dimensions as input control in the report.

Like we have the values of certain dimensions as input control, instead I succeeded in getting number of dimensions as input control.

Below are the steps to achieve the same.

  • Create a WebI Report or use any existing report.
  • Create a New Variable as (Dimension) and hard code with some value./wp-content/uploads/2015/12/1_844079.png
  • Now, Go to Input Controls and click on New to create an Input Control.
  • In the properties tab check on Radio Buttons in the Simple Selection Pane:

       /wp-content/uploads/2015/12/2_844081.png

  • Then select the tab (marked in red) in the List of Values and make sure “Custom” is selected

         /wp-content/uploads/2015/12/3_844082.png

  • Once you have selected the tab you will get another window where you can put in all the dimensions which you would like to be available for your selection.

             /wp-content/uploads/2015/12/4_844083.png

  • Once you have all the dimensions selected please select Ok twice as the properties pane also needs to be closed.
  • Once you have done this you will see the Input Control Available with the dimensions, but when you check the radio button it would not work as these are hard coded values.

               /wp-content/uploads/2015/12/5_844084.png

  • To make these values work we need to create one more variable and give it a name as “Selected Dimension” or any other name that suits.

                   /wp-content/uploads/2015/12/6_844085.png

  • In this we need to write a formula which would help the Input Controls to work:

               =If ReportFilter([Select a Dimension]) = “Sales Office” Then [Sales Office]

               ElseIf  ReportFilter([Select a Dimension]) = “Division” Then [Division]

               ElseIf ReportFilter([Select a Dimension]) = “MR Number” Then [MR Number]

               ElseIf  ReportFilter([Select a Dimension]) = “Material Group” Then [Material Group]

               Else 0

  • Once the variable is created drag it to the report body and then try to check the Input Control radio buttons and they should work for this column and the measures would also change based on your selection.

           

Remember to remove all the dimensions from the report body which you have used in the Input variable or else it would get confusing.

Now you have the input variables working for you:

Selected below is “Sales Office”

          /wp-content/uploads/2015/12/7_844091.png

“Division” is selected:

          /wp-content/uploads/2015/12/8_844092.png

To ensure the header name also changes along with the selection:

  • Create a variable say “Name” and write a formula again:

               =If ReportFilter([Select a Dimension]) = “Sales Office” Then “Sales Office”

               ElseIf ReportFilter([Select a Dimension]) = “Division” Then “Division”

               ElseIf ReportFilter([Select a Dimension]) = “MR Number” Then “MR Number”

  • Copy the formula and paste it in the header of the field which you have dragged to the report i.e. the “selected variables”

             /wp-content/uploads/2015/12/9_844093.png

Once this is done whenever you would select a dimension from the Input Control the header name would change dynamically.

Note: Please ensure that spellings match while writing the formulas or else the values might not come properly.

Hope this helps.

To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

    1. SANDEEP SINHA Post author

      Hi Rogerio,

      Thanks. Yes it could be used for charts and measures as well.

      I am using it for charts and tables both in one go.

      Regards

      Sandeep

      (0) 
    1. SANDEEP SINHA Post author

      Hi Charu,

      Thank You.

      once you enter the Input control properties you will find two panes on the left hand side. In the “Multiple Selections”  pane you have “check box” as a selection, select that and perform the same trick by customizing the List of Values.

      once the whole step is complete you would have multiple selection option using check boxes.

      Hope this answers your question.

      Regards

      Sandeep

      (0) 

Leave a Reply