Data Management Group
Company Professional Services Solutions Technology Expertise Training & Education Resources
Resources










Contact Us

BI Advantage Newsletter

 

 

How to Display Max and Min Date Range Values in Web Intelligence XI

The information in the article refers to
Crystal Reports

Applies to
Web Intelligence XI

Synopsis
How can you display the maximum and minimum values used in a date range prompt on a Web Intelligence report?

Solution
To display the maximum and minimum values used in a date range prompt on a Web Intelligence report use the 'UserResponse' function. To demonstrate this, you will first need to create a simple Web Intelligence report which uses a date range prompt.

Creating the date range report:

  1. Create a Web Intelligence report, and place a date object in the 'Results Object' pane.
  2. Place this same date object into the 'Query Filters' pane.
  3. In the 'Filter Editor', set the 'Operator' to 'Between', and the 'Operand Type' to 'Prompt'
  4. In the 'Prompt Text' section, enter text for 'From' and 'To', such as "Required Date From" and "Required Date To". Take note of the exact text you are using here, as these will be used in the variables later.
  5. Click 'OK', and then click 'Run Query'.

Creating the variables using the 'UserResponse' function:

  1. At the top of the screen, click 'Show/Hide Variable Editor'.
  2. Give the 'Variable Definition' a name, for example "MinValue".
  3. In 'Formula Definition', type "=UserResponse("Required Date From")".
  4. Click 'Save' and then click 'Close'.
  5. Under 'Variables' on the left, you will now have a 'MinValue' variable to place on the report.
  6. Repeat these steps to create a 'MaxValue' variable.

When theses two variables are placed on the report, they will display the maximum and minimum values that the user enters for the date range prompt.

Questions
Have a question for our trainers?
Click here to send your questions!

 

Professional Services

To find out how we can help you solve your information challenges, visit our professional services pages:

Blueprint Analysis
Business Intelligence Implementation
Performance Management
Data Management
Business Intelligence Integration
Training and Education

Career Post Email


COMPANY | PROFESSIONAL SERVICES | SOLUTIONS | TECHNOLOGY EXPERTISE | TRAINING & EDUCATION | RESOURCES