Implementing Misc Functions

Objectives

After completing this lesson, you will be able to:
  • Create a variable using NoFilter() function
  • Create a variable using RunningSum() function

Report Filter or Ranking Override

You may need to display a calculation that includes both the data that the table displays, and the data that is present in the data provider but not currently displayed in the table. The only way to achieve this is to force Web Intelligence to ignore a report filter or ranking that is applied to an object or variable in the data provider.

Use theNoFilter() function to override a report filter or ranking. NoFilter() includes all the values of a variable in the data provider in the calculation, even if the data does not display in the table or block.

The syntax for theNoFilter() function is as follows:

NoFilter(object)

Report Filter or Ranking Override – An Example

Watch this video to learn about the Use of the No Filter() Function.

The RunningSum() Function

The RunningSum() function is one of several running aggregate functions available for calculating data in Web Intelligence.

Other running aggregate functions include:

  • RunningAverage()
  • RunningCount()
  • RunningMax()
  • RunningMin()
  • RunningProduct()

A running sum is a total that is accumulated from value to value across a series of values.

You can use the RunningSum() function to return the running sum of a set of numbers. One feature of running aggregate functions is that a reset can be applied to them within the report. This allows you to start the cumulative total again at a given value (for example, at a break).

The syntax for using the RunningSum() function is:

Number RunningSum([measure];[Row|Col];[(reset_dimensions)])

The following table describes the components of the syntax of the RunningSum() function:

Syntax ComponentDescription
[measure]This refers to any measure object in the data provider
Row|ColThis refers to the calculation direction (optional parameter)
reset_dimensionsThis refers to the list of dimensions used to reset the running sum (optional parameter)

Usage of the RunningSum() Function

You create a report to show State, Year, and Sales revenue with a break by State. You need to add another column to the report to display a running sum.

Use the formula:

=RunningSum([Sales revenue])

If you add a Running Total column to the report, the report displays as shown.

Usage of the RunningSum() function: See text before image for more details.

If you want the running total to be reset for each state, modify the formula to reset the total each time the table breaks.

Use the following syntax to modify the formula:

=RunningSum([Sales revenue] ; ([State]))

Usage of the RunningSum() function with reset: See text before image for more details.

Implement Additional Reporting Functions

Log in to track your progress & complete quizzes