Creating list of default values for hierarchy variable

When a query contains a hierarchy variable, the MDX Query driver creates an extra field called Hierarchies in Crystal Reports that allows you to create a list of values for the variable.

  1. In the Field Explorer, expand Parameter Fields, and right-click [HV01].

    The parameter, [HV01], in CR represents the hierarchy variable you created for this query.

  2. Click Edit.

    The Edit Parameter dialog box opens.

  3. Ensure that the List of Values field is set to Static.
  4. From the Value list, select Hierarchies-[0MATERIAL].
  5. From the Description list, select Hierarchies-[0MATERIAL]-Description.
  6. Click Actions and then click Append all database values.

    The Value and Description lists are populated with values from the BW system.

  7. In the Values Options area, set the Prompt Text to the message you would like users to receive in the parameter prompt.
  8. Ensure that Allow customer values and Allow multiple values set to False.
  9. Click OK.