PowerSteeringPowerSteering User GuidesEnd User Guide Using MeasuresWhat are some Formula Builder examples for measures?

What are some Formula Builder examples for measures?

Formula measures are created by building formulas in the Formula Builder. For an overview of the Formula builder, see the article "What is the Formula Builder?". This article describes how to create each of the visibility rules that are shown on the Example tab in the Formula Builder.

Note: The terms shown in several of the steps below are specific to this site. The terms on your site for things like Status Names and Metrics may be different based on your site.

1. Number Of Off-Track Projects In This Organization

This formula will show the number of off-track projects in this organization.

  1. Click the Overview tab.
  2. From the first Aggregate drop-down menu, select NUMBER OF.
  3. From the second Aggregate drop-down menu, select NUMBER of x IN {Something} HAVING {Boolean} END.
  4. Click the green plus sign.
  5. Click the Projects tab.

1.1. Click hasStatus

  1. In the formula builder box, place your cursor inside the word "Something" inside the curly brackets.
  2. Click projectsOf.
  3. In the formula builder box, replace "Project" with "this".
  4. In the formula builder box, place your cursor inside the word "Boolean" inside the curly brackets.
  5. Click hasStatus.

1.2. Click The Green Plus Sign

  1. Click the Objects tab.
  2. In the formula builder box, replace "Project" with "x".
  3. From the Statuses drop-down menu, select the applicable status.
  4. In the formula builder box, place your cursor inside the word "Status" inside the curly brackets.
  5. Click the green plus sign.

1.3. Click OK

  • Click OK.

2. Number Of Off-Track Projects In This Organization That Are A Specified Work Type

This formula will show the number of off-track projects with a specified work type in this organization.

  1. Click the Overview tab.
  2. In the first aggregate drop-down menu, select NUMBER OF.
  3. In the second aggregate drop-down menu, select NUMBER of x IN {Something} HAVING {Boolean} END.
  4. Click the green plus sign.
  5. Click the Projects tab.

2.1. Click hasStatus

  1. In the formula builder box, place your cursor inside the word "Something" inside the curly brackets.
  2. Click projectsOf.
  3. In the formula builder box, replace "Project" with "this, ".
  4. In the formula builder box, place your cursor inside the word "Boolean" inside the curly brackets.
  5. Click hasStatus.

2.2. Click The Green Plus Sign

  1. Click the Objects tab.
  2. From the Work Types drop-down menu, select the work type.
  3. In the formula builder box, place your cursor inside the parenthesis after "this, ".
  4. Click the green plus sign.

2.3. Click OK

  1. In the formula builder box, replace "Project" with "x".
  2. From the Statuses drop-down menu, select the applicable status.
  3. In the formula builder box, place your cursor inside the word "Status" inside the curly brackets.
  4. Click the green plus sign.
  5. Click OK.

3. Maximum Of The Scheduled Durations For All Projects In The Specified Portfolio

This formula will show the maximum of the scheduled durations for all projects in the specified portfolio. If the portfolio is empty, it will display 0.

  1. Click the Overview tab.
  2. From the first Aggregate drop-down menu, select MAX OF.
  3. From the second Aggregate drop-down menu, select MAX OF {Number} FOR x IN {Something} IFNONE {Number} END.
  4. Click the green plus sign.
  5. Click the Project Dates tab.

3.1. Click The Objects Tab

  1. In the formula builder box, place your cursor inside the word "Number" inside the curly brackets.
  2. Click scheduledDuration.
  3. Click the Objects tab.

3.2. Click OK

  1. In the formula builder box, replace "Project" with "x".
  2. In the formula builder box, replace "Number" with "0".
  3. From the Portfolios drop-down menu, select the portfolio.
  4. In the formula builder box, place your cursor inside the word "Something" inside the curly brackets.
  5. Click the green plus sign.
  6. Click OK.

4. Difference Between Planned And Actual Dates For A Portfolio

This formula will show the difference between planned and actual dates for a portfolio.

  1. In the formula builder box, type the text shown in the screen shot above.
  2. Click the Objects tab.
  3. From the Portfolios drop-down menu, select the portfolio.
  4. In the formula builder box, place your cursor after "myPortfolio = ".
  5. Click the green plus sign.

4.1. Click The Overview Tab

  1. Add a semicolon at the end of the MyPortfolio line.
  2. From the Periods drop-down menu, select the metric period.
  3. In the formula builder box, place your cursor after "period = ".
  4. Click the green plus sign.
  5. In the formula builder box, add a semicolon at the end of the period line.
  6. Click the Overview tab.

4.2. Click The Green Plus Sign

  1. In the first aggregate drop-down menu, select SUM OF.
  2. In the second aggregate drop-down menu, select SUM OF {Number} FOR x IN {Something} END.
  3. In the formula builder box, place your cursor after "totalPlanned = ".
  4. Click the green plus sign.
  5. In the formula builder box, add a semicolon add the end of the totalPlanned line.
  6. In the formula builder box, place your cursor after "totalActual = ".
  7. Click the green plus sign.

4.3. Click metricTotal

  1. In the formula builder box, add a semicolon add the end of the totalActual line.
  2. Click the Projects tab.
  3. In the formula builder box, for the totalPlanned line, place your cursor inside the word "Number" inside the curly brackets.
  4. Click metricTotal.

4.4. Click The Objects Tab

  1. In the formula builder box, for the totalActual line, place your cursor inside the word "Number" inside the curly brackets.
  2. Click metricTotal.
  3. Click the Objects tab.

4.5. Click The Green Plus Sign

  1. From the first Metric Items drop-down menu, select the metric template
  2. From the second Metric Items drop-down menu, select the metric view for the totaPlanned line.
  3. From the third Metric Items drop-down menu, select the metric line item.
  4. In the formula builder box, for the totalPlanned line, place your cursor inside the word "MetricItem" inside the curly brackets.
  5. Click the green plus sign.
  6. From the second Metric Items drop-down menu, select the metric view or the ActualPlanned line.
  7. In the formula builder box, for the actualPlanned line, place your cursor inside the word "MetricItem" inside the curly brackets.
  8. Click the green plus sign.

4.6. Click OK

  1. In the formula builder box, replace "Project" with "x" in both the totalPlanned and actualPlanned lines.
  2. In the formula builder box, replace "Period" with "period" in both the totalPlanned and actualPlanned lines.
  3. In the formula builder box, replace "Something" with "myPortfolio" in both the totalPlanned and actualPlanned lines.
  4. Click OK.

0 Comments

Add your comment

E-Mail me when someone replies to this comment